I changed by theme back to X instead of Pro as I prefer the menu structure of X.
Can you please help me change the font color of the navbar top menu items from the default color into white before scrolling? I managed to change the default color of x-brand into white but not for the Navbar.
Please find the code below.
jQuery(document).ready(function($){
$(’.home.x-navbar-fixed-top-active .x-navbar-wrap’).css(‘height’, 0);
$(’.home .x-navbar’).css({‘color’:’#fff’,‘background-color’: ‘transparent’,‘box-shadow’: ‘none’, ‘border-width’ : 0});
$(’.home .x-brand’).css({‘color’:’#fff’});
$(window).scroll(function(){
if ($(this).scrollTop() > 200 || $(’.x-nav-wrap.mobile’).hasClass(‘in’) ) {
$(’.home .x-navbar-fixed-top’).css({‘background-color’: ‘#fff’, ‘box-shadow’: ‘0 0.15em 0.35em 0 rgba(0,0,0,0.135);’, ‘border-width’ : ‘1px’});
$(’.home .x-brand’).css({‘color’:’#000’});
} else {
$(’.home .x-navbar-fixed-top’).css({‘background-color’: ‘transparent’, ‘box-shadow’: ‘none’, ‘border-width’ : 0});
$(’.home .x-brand’).css({‘color’:’#fff’});
}
});
});