Tagged: x
-
AuthorPosts
-
July 7, 2016 at 9:37 am #1076525
dbelkieParticipantHi guys!
I am looking to add a slider above my main blog page, as well as be able to add sliders to my post pages. I do not have my site setup to have the blog as my homepage.I found some information here:
https://community.theme.co/forums/topic/revolution-slider-on-blog-2/#post-36418
but it s a, few years old and I dont think relevant anymore.Here is the link to my main blog page:
http://dev01.everythingcloud.com/blog/Here is a link to a post page:
http://dev01.everythingcloud.com/blog/about-dan-part-one/Any ideas?
Thanks
DanJuly 7, 2016 at 12:28 pm #1076705
JoaoModeratorHi Dan,
Please refer to this thread:
https://community.theme.co/forums/topic/add-slider-to-blog-page/
Let us know if you need further help.
Thanks
Joao
July 7, 2016 at 1:04 pm #1076735
dbelkieParticipantPerfect!
Thanks! In case anyone else is looking the code I used is below.
I needed to edit your example for the integrity stack from ethos, and then also the second bunch of code (adding a custom blog image) will put the slider on any blog “post” that is “uncategorized”. (I used “uncategorized” as the trigger to display the banner)
Thanks!
Dan// Adding a Slider in Blog Page
// =============================================================================add_action(‘x_before_view_integrity__landmark-header’, ‘custom_blog_header’);
function custom_blog_header() {
if ( is_home() ) {
echo do_shortcode(‘[rev_slider alias=”about”]’);
}
}// =============================================================================
// Add a custom blog header image
// =============================================================================
add_action(‘x_before_view_integrity__landmark-header’, ‘custom_blog_header01’);
function custom_blog_header01(){
if (is_single() && in_category(‘Uncategorized’)) {
echo do_shortcode(‘[rev_slider alias=”about”]’);}
}July 7, 2016 at 10:07 pm #1077403
FriechModeratorThanks for sharing Dan, I’ve just replied to your other post.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1076525 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
