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.

Smart Slider2 – Full Width

Resolved 3 replies premiumthemetheme-vantage
11 years ago · Last reply by Andrew Misplon 11 years ago

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

3
  1. brianvest 11 years, 10 months ago

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

  2. Andrew Misplon Staff 11 years, 10 months ago

    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. Andrew Misplon Staff 11 years, 10 months ago

    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.

Have a different question or issue?

Start New Thread