Home>Support>Smart Slider2 – Full Width on the Home Page

Smart Slider2 – Full Width on the Home Page

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

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

  1. 11 years, 2 months ago Andrew Misplon
    Hi, I Work Here

    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. 11 years, 2 months ago brianvest

    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. 11 years, 2 months ago Andrew Misplon
    Hi, I Work Here

    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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More