Hi guys,
In my mobile menu I have two custom links that use an anchor (/home#contact and /home#about). When a visitor is already on the homepage and clicks on one of the links the mobile menu fails to hide on click. The visitor is forced to manually close the menu. When clicking on these links from outside the homepage, the mobile menu hides automatically.
I tried this solution I found on the forum but that does not solve the problem:
jQuery(document).ready(function($) {
_ $(’.hm6.x-menu > li > .x-anchor’).on(‘click touchend’, function() {_
_ $(“button.x-off-canvas-close”).trigger(‘click’);_
_ });_
});
To be clear: there are no problems on the desktop version.
website: www.cristinaperalta.com
Thanks in advance,
Tijs