Hi,
I'm hiding the main menu of my website until the user starts scrolling. Here is the jquery:
jQuery(window).scroll(function() {
if (jQuery(window).scrollTop() > 120) {
jQuery("nav.primary").fadeIn();
}
else {
jQuery("nav.primary").fadeOut();
}
});
however, I never want to hide the mobile menu. How can I prevent this to happen? I tried to check it these ways because these are changing in my inspector when I go from desktop to mobile layout:
if (jQuery("body").hasClass( "lightbox-css-on" ))
if (jQuery('nav.primary').css('max-height') == '566px')
but this doesn't seem to work. Any help?
Thanks !
Robin