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
Looks 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:
Replace my page ID of 2 with yours and replace my shortcodes with yours.