• Resolved treschev

    (@treschev)


    hi!
    my mobile menu (burger) doesn`t work correctly.
    when you open it and choose any link on same page (anchor), it scrolls u to the item, but does not closes!

    Can u help me? thx!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    You’ll need an additional custom JavaScript to make it closes itself for one-page menu item.

    Try these steps:

    1. Install and activate Custom JavaScript plugin like TC Custom JavaScript plugin
    2. If you have TC Custom JavaScript installed, go to Appearance > Custom JavaScript
    3. Paste the following code into the provided box

    (function($){
    
        if( matchMedia('only screen and (max-width: 1024px)') ) {
            $( document ).on('click', function(e){
                if( !$( e.target ).closest('.menu-toggle').length ) {
                    $('.sydney-offcanvas-menu').removeClass('toggled');
                }
            });
        }
    
    })(jQuery);
    

    4. Update

    Hope that helps.

    Thread Starter treschev

    (@treschev)

    thx, it helped!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Mobile menu (hamburger) doesn`t work.’ is closed to new replies.