Home Forums WoodMart support forum Mobile menu dont close with anchor link

Mobile menu dont close with anchor link

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #474968

    Pernilla
    Participant

    When having an anochor link the menu does not close autmatically on mobile menu. Is there a solution for that?

    #475265

    Hello,

    Go to WoodMart -> Header builder -> edit current header -> switch to mobile header -> Configure Mobile menu settings. Here you can enable the option show close button for the menu.
    https://ibb.co/Yjk2342

    Best Regards.

    #475282

    Pernilla
    Participant

    Thanks!
    I know this already and the settings are done.
    Normally, when clicking on a link in mobile menu, you will go to the new page and the menu is closed by himself…. but when clicking on a link, that is an anchor link on the same page, the menu does not close by himself. And I would like it to close automatically as you exepct the menu to do after clicking on a link.

    #475988

    Hello,

    Please use the below custom JS code and paste it to Theme Settings >> Custom JS >> On document ready section:

    jQuery('.wd-nav-mobile').on('click', 'li > a', function(e) {
        jQuery('.wd-close-side').click();    
    });

    I am sure your issue will be solved.

    Best Regards.

    #475991

    Pernilla
    Participant

    Thank you!!
    Yes, that works just as I wanted! Great!

    #475992

    Most Welcome!!!.

    I’m so happy to hear you are pleased with the Theme and Support. XTEMOS strives to deliver the best customer experience, and it makes our day to hear we have accomplished that.

    We count ourselves lucky to have you as a customer. You can always reach us at any time. We are always here to help you.

    Thanks for contacting us.
    Have a great day.

    Topic Closed.
    Best Regards.

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Mobile menu dont close with anchor link’ is closed to new replies.