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?
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
with your own conditional. Something like:
Full list of WP conditionals here: http://codex.wordpress.org/Conditional_Tags. Above is un-tested, let me know how it goes.
Has anyone managed to this? and why can’t ‘posts’ have the same full width slider as ‘pages’?
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]");
}
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.