How to hide the sub menu after a menu item link is clicked

Close desktop menu after click

If you are using a one page theme or have anchor links within your sub menus, and want to close the desktop menu as soon as one of the links is clicked:

  1. Install the TC Custom JavaScript Plugin
  2. Go to Appearance > Custom JavaScript and enter the following:

Close mobile menu after click

If you are using a one page theme and want to close the mobile menu as soon as one of the links is clicked:

  1. Install the TC Custom JavaScript Plugin
  2. Go to Appearance > Custom JavaScript and enter the following:

Related Articles