Home>Support>Slider does not show up in single post or single.php

Slider does not show up in single post or single.php

By Joey Sephora, 10 years ago. Last reply by Andrew Misplon, 8 years ago.

I am pulling down the same masthead and header in my single.php as I am for my home and other pages. The slider appears on my home page and other pages, but not on post pages.

Is there a way to ensure the slider appears on single.php? What is blocking it?

URL: http://actwebdesign.com.au/ditchfield-test/news/

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 10 years, 23 days ago Andrew Misplon
    Hi, I Work Here

    Hi Joey

    The current slider functionality allows selection for the home page and pages in general using the drop down menu in the right column. This functionality unfortunately isn’t available for pages. To add this functionality for posts you’d need to insert header.php into a child theme and replace

    <?php vantage_render_slider() ?>

    with your own conditional. Something like:

    <?php if( is_front_page() ) {echo do_shortcode("[metaslider id=189]"); }if( is_page() ) {echo do_shortcode("[metaslider id=190]"); }if( is_single() ) {echo do_shortcode("[metaslider id=191]"); }?>

    Full list of WP conditionals here: http://codex.wordpress.org/Conditional_Tags. Above is un-tested, let me know how it goes.

  2. 9 years, 11 months ago kevinmccourt

    Has anyone managed to this? and why can’t ‘posts’ have the same full width slider as ‘pages’?

  3. 8 years, 5 months ago Chantal Steyn Curtis

    Hi – I am trying this, but how do I make it that each post has a different slide?

    <?php
    if( is_front_page() ) {
    echo do_shortcode("[metaslider id=189]");
    }
    if( is_page() ) {
    echo do_shortcode("[metaslider id=190]");
    }
    if( is_single(post1) ) {
    echo do_shortcode("[metaslider id=60]");
    }
    if( is_single(post2) ) {
    echo do_shortcode("[metaslider id=121]");
    }

    • 8 years, 5 months ago Andrew Misplon
      Hi, I Work Here

      Hi Chantal

      We’d like to help you, but can you please start a new thread with your question? We can only offer you the best support possible when you’re the owner of a thread.

      Page: New Thread

      If you’re a premium user, please be sure to enter your order number so we can properly prioritize your thread.

      If you post the link to your new thread here after creating it, I’ll be happy to jump it up the line.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More