Smart Slider2 – Full Width
Meta Slider works fine for most pages, but I’d like to replace it on certain pages with another plugin [smartslider2]
My problem with simply using the shortcode is that the site wrapper is preventing a full page width display.
This is what I’ve tried (in various places within my child theme header.php …with no luck:
Page ID == 202
Slider ID == 4
This is our free support forum. Replies can take several days.
Need fast email support? Get SiteOrigin Premium
Replies
3Looks like the PHP is being stripped out:
php
if(get_the_ID()==2) {
echo do_shortcode(‘[smartslider2 slider=”1″]’);
}
Hi Brian
You can try this in the header.php:
<?php if (is_page('2')) : ?> <?php echo do_shortcode("[metaslider id=19]") ?> <?php else: ?> <?php echo do_shortcode("[metaslider id=20]") ?> <?php endif; ?>Replace my page ID of 2 with yours and replace my shortcodes with yours.
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.