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.

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

10 years ago · Last reply by Andrew Misplon 10 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Andrew Misplon Staff 10 years, 6 months ago

    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.

Have a different question or issue?

Start New Thread