Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1076525
    dbelkie
    Participant

    Hi 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
    Dan

    #1076705
    Joao
    Moderator

    Hi 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

    #1076735
    dbelkie
    Participant

    Perfect!

    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”]’);

    }
    }

    #1077403
    Friech
    Moderator

    Thanks for sharing Dan, I’ve just replied to your other post.

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1076525 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>