Hi - I have already added the below CSS and JS to my Integrity Stack theme, which makes my header transparent at the top, and then white as you scroll down. I need help changing the navbar text to white when the header is transparent. Can you please help?
CSS added:
.x-navbar { background: transparent none repeat scroll 0 0; border: medium none; box-shadow: none; } .x-navbar.x-navbar-fixed-top { background-color: #fff; border-bottom: 1px solid #ccc; box-shadow: 0 0.15em 0.35em 0 rgba(0, 0, 0, 0.133); }
.masthead-inline { position: absolute; top: 0; left: 0; width: 100%; } .x-navbar-fixed-top { background-color: #fff; }
.x-navbar { box-shadow: none !important; border-bottom: none !important; }
JS Added:
jQuery(function($){ $(window).scroll(function(){ if( $(this).scrollTop() == 0 ) { $(’.x-navbar-fixed-top’).removeClass(‘x-navbar-fixed-top’); } }) });
