This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

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

Open 4 replies themetheme-vantage
11 years ago · Last reply by Andrew Misplon 9 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.

Need fast email support? Get SiteOrigin Premium

Replies

4
  1. Andrew Misplon Staff 11 years, 5 months ago

    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. kevinmccourt 11 years, 4 months ago

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

  3. Chantal Steyn Curtis 9 years, 10 months ago

    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]");
    }

    • Andrew Misplon Staff 9 years, 10 months ago

      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.

Have a different question or issue?

Start New Thread