Home>Support>Smart Slider2 – Full Width

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. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 10 years, 5 months ago brianvest

    Looks like the PHP is being stripped out:
    php
    if(get_the_ID()==2) {
    echo do_shortcode(‘[smartslider2 slider=”1″]’);
    }

  2. 10 years, 5 months ago Andrew Misplon
    Hi, I Work Here

    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; ?>
  3. 10 years, 5 months ago Andrew Misplon
    Hi, I Work Here

    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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More