Overlay menu closing on menu item click

Hello

How do I turn off an overlay when I click a link in the menu leading to the same page?

Comments

  • I found solution

    jQuery("#menu-item-279 a").click(function(){
    jQuery(".overlay-menu-toggle").toggleClass('focus');
    jQuery( '#Overlay' ).stop(true,true).fadeToggle(500);
    var menuH = jQuery('#Overlay nav').height() / 2;
    jQuery( '#Overlay nav' ).css( 'margin-top', '-' + menuH + 'px' );
    });
Sign In or Register to comment.