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 on the Home Page

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

I’ve tried to cobble a few pieces together from other threads, but it’s not working.

I want the option to use the default slider on the site. I simply want to replace the default slider on the home page with a smart slider2.

When I place the following shortcode into pagebuilder on the home page, it works fine, but the site wrapper prevents it from displaying full width. [smartslider2 slider=”5″]

I’ve created a child theme and replaced header.php code: ?php vantage_render_slider() ?>
With: ? php if(is_front_page()) echo do_shortcode(“[smartslider2 slider=”5″]”); ?>

Getting an error: Parse error: syntax error, unexpected ‘5’ (T_LNUMBER) in /home/content/p3nexnas03/84/2059784/html/wp-content/themes/vantage/header.php on line 34

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

3
  1. Andrew Misplon Staff 12 years, 1 month ago

    Hi Brian

    It looks like you’re missing the opening of the PHP tag, you’ll also need a different set of containing inverted commas, please try the below:

  2. brianvest 12 years, 1 month ago

    I think that will work. I’ve got some spacing issues below the slider, but should be able to figure them out.
    Thanks so much!

  3. Andrew Misplon Staff 12 years, 1 month ago

    No worries.

    Sometimes you can sort out the spacing below the slider by using a negative margin on #main like this:

    #main { margin-top: -35px; }

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