Home>Support>Replacing Meta Slider with Another Slider in Vantage

Replacing Meta Slider with Another Slider in Vantage

Hello, i need to change the area for the slider to another plugin slider for ad space. Where in the code would i find the tag that would say somthing along the lines of [metaslider=1] or what ever it would be to refrence the slider thats already there. ive checked in the header file and a few of the others but can not find anything.
Please help

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 8 years, 1 month ago Andrew Misplon Hi, I Work Here

    Hi Jake

    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.

    Hope that helps.

    Here is a child theme to match this thread:

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

  2. 8 years, 1 month ago jake gustainis

    This helps alot thanks, only issue is what should my code be if the shortcode for the slider is [tile-template id=”109″]

  3. 8 years, 1 month ago Andrew Misplon Hi, I Work Here

    No problem.

    In that case try replacing my:

    <?php if(is_front_page()) layerslider(1); ?>

    with

    <?php if(is_front_page()) echo do_shortcode( '[tile-template id="109"]' ) ?>
  4. 7 years, 9 months ago Luis D gante

    Im sorry for asking, but where do you add these lines you suggested?

    I have activated the child style.css which currently contains the following code:
    /*
    Theme Name: Vantage Child
    Author: SiteOrigin
    Template: vantage
    Version: 1.0.0
    */

    @import url(“../vantage/style.css”);

  5. 7 years, 8 months ago wizlore

    If I wanted to replace the metaslider with a HTML5 canvas
    How should I do that?

  6. 7 years, 7 months ago Karol Swoboda

    Hello,
    I Followed all the instructions, everything went well, beside that the rest of header dissapeard: the section with logo and menu. What shell i do with it?

  7. 7 years, 1 month ago Cliff Sarcona

    Andrew,

    Using Layerslider – Your method above worked great for the homepage! Now I would like to place a LayerSlider on another specific page. How would I go about doing this? Placing the shortcode for the layerslider on the page did not work.

    Thanks!!

    • 7 years, 1 month ago Andrew Misplon Hi, I Work Here

      Hey Cliff

      We’d need to expand the conditional:

      <?php if(is_front_page()) echo do_shortcode( '[tile-template id="109"]' ) ?>
      

      to include your new pages. If you can open a new thread we’ll help out with that ASAP:

      Page: New Thread

      Thanks

  8. 6 years, 1 month ago Forgues Gestion

    Hi Andrew,

    I did open a new thread but got no responses.

    I followed all your instructions above in order to replace the meta slider by revolution slider but revolution is not properly displayed. Is there a conflict between theme Vantage and revolution slider? how can I manage to solve that problem?

    Thanks very much.

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