Mobile menu dont close with anchor link
-
When having an anochor link the menu does not close autmatically on mobile menu. Is there a solution for that?
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.
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.
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.
Thank you!!
Yes, that works just as I wanted! Great!
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.
The topic ‘Mobile menu dont close with anchor link’ is closed to new replies.