Archived topic
Mobile Menu Does not close with anchor Links
3 replies · Started by Jumbo on November 1, 2016
Hello :) I hope your are doing good. Btw LOVE your theme :D
I just have a small problem. Here is my Website: ge-holzofen.de
When I open it on my Cell Phone.....the yellow Menu which has a couple of Anchor Links doesn´t close automatically.
I want to make it Sticky on my cell phone too, but if I click on any item there. The Menu stays open and I have to close it manually.
Is there a way, so that when I click on an item, it jumps to that part of the page and closes automatically.....CSS?
Thanks :)
Hi there,
Glad you're enjoying the theme!
This topic might help: https://generatepress.com/forums/topic/auto-collapse-mobile-menu/
Let me know :)
Thank you very much :)
I did what u say. Now the scrolling and page jumping is smooth but the menu still doesn't close (mobile version).
I have put the jquerry in wp-footer hook.
Is there a way so that it closes automatically?
Thanks again
Ah, the code is meant for the main navigation.
To make it work with the secondary navigation, replace .main-navigation with .secondary-navigation throughout the code.