This solution enables you to hide the Genesis responsive menu when any menu item in the drop down toggle menu is clicked. Once the menu item is clicked, the entire drop down is closed and the responsive menu icon ( hamburger menu ) can then be opened again as seen in the demo video.
Demo Video
In this case, the menu items for scroll points on the front page are clicked resulting in the responsive menu closing.
Tested using the Altitude Pro child theme by StudioPress however will work in any StudioPress child theme. Coded to load on the front page only.
Installation Steps
There’s 2 steps :
- # Upload the file named menu.js to your child themes root directory like this :
- # Copy & paste the PHP code ( without the opening PHP tag ) from the functions.php file to the end of your child themes functions file.




Leave a Reply
You must be logged in to post a comment.