Home>Support>how to embed slider (other than metaslider) not vantage theme

how to embed slider (other than metaslider) not vantage theme

Hi Team,

I use revolution slider in my vantage theme and when I have one slider with up to 5 images.
This slider appears on every page so I wanted to change this with different sliders on every page.

What I did was to edit the code: see below “rev slider”



<div id="page-wrapper">

	


	


	

	

	<div id="main" class="site-main">
		<div class="full-container">
			

But it didn’t work out because on one page the “main slider” stays on top and the “new one is below”.
I already contacted Siteorigin support (creators from Vantage Wp theme) to help me and to check my code.
They tried to put

 'print   <h1>hello</h1>'  ; 
but nothing shows up which was strange.

How should I embed any slider to this theme correctly so that every page shows different images/slider?

Could you please help me out in this special case?

Cheers.

URL: http://bitly.com/1IlAKgL

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

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

    Hi Davor

    It needs to be done in header.php contained in a child theme using WordPress PHP conditionals. Something like this:

    1. Replace this function:

    <?php vantage_render_slider() ?>
    

    2. With something like the following:

    <?php 
    	if ( is_front_page() ) {
    		echo do_shortcode( '[rev_slider slider_1]' );
    	} 
    	if ( is_page( 42 ) ) {
    		echo do_shortcode( '[rev_slider slider_2]' );
    	}
    ?>
    

    A full list of WordPress conditionals can be found here:

    https://codex.wordpress.org/Conditional_Tags

    Hope that helps get you going.

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