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.

Replies

3
  1. Judy Tan 10 years, 9 months ago

    Hi Addo,
    I have installed layer slider. How do i change the slider?

  2. Daniel Staff 10 years, 9 months ago

    Hi Judy

    Say for example you wanted to insert LayerSlider in the exact same place as MetaSlider on the home page, this is what you’d do. Firstly create a child theme for Vantage, your child theme’s style.css should look something like this:

    /*
     Theme Name:     Vantage Child
     Author:         SiteOrigin
     Template:       vantage
     Version:        1.0.0
    */
    @import url("../vantage/style.css");

    Now in your child theme place a copy of the current header.php file. Then open that file and insert your slider call between these two lines:

    <?php do_action( 'vantage_after_masthead' ); ?>
    <?php do_action( 'vantage_before_main_container' ); ?>

    So in my case my final result looked like this:

    <?php do_action( 'vantage_after_masthead' ); ?>
    	<?php if(is_front_page()) layerslider(1); ?>
    	<?php do_action( 'vantage_before_main_container' ); ?>

    You’ll see I have a little PHP in there to restrict my LayerSlider to only the home page.

    When you enable your child theme you will need to re-do your Customizer settings. My advice to make this as smooth as possible is to have your current Customizer screen open in one tab, and your new Customizer in another, then just go section by section, copying your settings across.

    Here is a child theme to match this thread:

    https://siteorigin.com/wp-content/uploads/2014/08/vantage-child.zip

    Hope that helps.

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