[Support request] Mobile Menu Does not close with anchor Links

Home Forums Support [Support request] Mobile Menu Does not close with anchor Links

Home Forums Support Mobile Menu Does not close with anchor Links

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #240706
    Jumbo

    Hello πŸ™‚ I hope your are doing good. Btw LOVE your theme πŸ˜€

    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 πŸ™‚

    #240817
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Glad you’re enjoying the theme!

    This topic might help: https://generatepress.com/forums/topic/auto-collapse-mobile-menu/

    Let me know πŸ™‚

    #241002
    Jumbo

    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

    #241119
    Tom
    Lead Developer
    Lead Developer

    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.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.