Mobile Navigation Menu Not Closing After Section Link Click

I’ve added section links to the navigation menu on mobile, but after clicking a link to navigate to a section, the navigation menu remains visible instead of closing automatically.

  • After navigating to a section, the navigation menu does not hide.
  • The menu stays visible even after moving to the targeted section on mobile.
  • The menu should automatically close after clicking on a section link, but it’s not happening.

Could you please assist me with ensuring that the navigation menu automatically closes after section navigation on mobile? Thank you!


Here is my public share link: LINK

Hi there,

While the navigation menu can be manually opened and closed using the hamburger menu on tablet breakpoints and below, you can implement automatic closing behavior using custom code. One approach is to add a simple JavaScript interaction that triggers the nav menu to close when navigation links are clicked.

You can achieve this by:

  1. Adding a custom code block to your site
  2. Creating an interaction that targets your navigation menu links
  3. Adding JavaScript that closes the menu when these links are clicked

For a code-free alternative, you can use Webflow’s built-in interactions to create a similar effect by adding click triggers to each navigation link that toggles the menu’s visibility.

Hopefully this helps! If you still need assistance, please reply here so somebody from the community can help.

I’d like to get more details on how to implement the feature where the navigation menu automatically closes when a link is clicked using Webflow’s built-in interactions. Specifically, I would like to know how to set this up so that it only applies to tablet and mobile breakpoints.

Additionally, if there are any specific considerations or best practices when applying this interaction, I’d appreciate it if you could share that information as well.

Looking forward to your reply. Thank you!