Streaming live at 10am (PST)

Mobile Anchor link not closing menu

Hi,
I have anchor links in my hamburger menu in mobile, however when I click them, they don’t close the mobile menu view, they just go to the anchored content and keep the menu view open. Can someone help with this? Appreciate it a lot, thanks!


Here is my site Read-Only: https://preview.webflow.com/preview/main-do-not-delete?utm_medium=preview_link&utm_source=dashboard&utm_content=main-do-not-delete&preview=5a0bbe91f8076cb2dbcc39e2106b96f0&mode=preview

Hi

Closing at the second click

To make external anchor links close the mobile menu, add this code snippet into your custom code via the project settings:

<script>
 $('.w-nav-menu').on('click', 'a', function() {
   $('.w-nav-button').triggerHandler('tap');
 });
</script>