-1
I am making a site in wordpress, but my problem is that, I want to hide the menu by default and make appear only the Sticky menu.
How can I do this with javascript? I’ve tried and searched, but I can never get to the desired result, I can’t hide the original menu and show only Sticky.
jQuery(document).scroll(function($) {
if (jquery('#mysticky-nav').hasClass('up')) {
jQuery('#mysticky-nav').css("opacity", "0");
} else {
jQuery('#mysticky-nav').css("opacity", "1");
}
});