change header color depending on which slide is viewed?
-
Hello!
Depending on which slide of the metaslider (rslider) is being viewed, I want a different header color(black or white). Does anyone have any advice?
I tried the code below but it isn’t working and wondered if there was a smarter way.
<script type=”text/javascript”>
jQuery(document).ready( function($){
var a=$(“flexslider_751 li#rslides1_s2”);
if(a.hasClass(“rslides1_on”)){
a.closest(“#pagewrap”).find(“#site-logo a, #main-nav a”).css(‘cssText’, ‘color:
black!important’);}
});Thank you so much!
Kashee
The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘change header color depending on which slide is viewed?’ is closed to new replies.