• Resolved aapon

    (@aapon)


    Hi and thank you for the great theme!

    I have added some anchor links in my website. Basically they all work well but the menu does not. From the usability point of view it would be better if the menu closes when clicking the link. Now it stays there and actually you have to scroll up before you see the closing button. Would you have any solution for this?

    Thank you!

Viewing 1 replies (of 1 total)
  • You can add a javascript snippet to close it, like it:

    (function($) {
        var menuLink = $('.main-navigation a');
        var siteNavWrapper = $('.site-navigation-wrapper');
    
        menuLink.on('click', function() {
            siteNavWrapper.removeClass('is-visible');
        });
    })(jQuery);

    Note: you need to enqueue that snippet after jQuery because it relies on jQuery lib.

Viewing 1 replies (of 1 total)
  • The topic ‘Anchor links & menu’ is closed to new replies.