Mobile menu fails with anchors
-
I am creating a “singlepage” homepage with the Sydney theme v1.84 using anchors – but when clicking a link in the menu in the mobile version, the menu doesn’t collapse. It stays open and covers the entire content – and makes it unusable.
I tried collapsing/removing the menu by adding this onclick eventlistener on menu links, but that doesn’t seem to work:
jQuery(document).ready(function($) { $('body .menu-item a').on('click', function() { $("body").removeClass('mobile-menu-visible'); }) });
Anybody has a proper solution for this problem?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Mobile menu fails with anchors’ is closed to new replies.