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.
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:
2. With something like the following:
A full list of WordPress conditionals can be found here:
https://codex.wordpress.org/Conditional_Tags
Hope that helps get you going.