Support only during business hours : Monday to friday, from 8:30 am – 5:30 pm CEST

Due to the decrease in our staff due to vacations, our response time may be longer.

Be sure we're doing our best to manage your topic as soon as possible.

Close Automatically the Mobile Menu After Clicking on an Anchor Link

Find Answers and Get Support Forums Stego – Food Truck & Restaurant Theme Feature Requests Close Automatically the Mobile Menu After Clicking on an Anchor Link

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • Neo
    Participant
    • 5 Topics
    • 10 Posts
    @neocortex

    Dear team,

    is there a way to make the menu automatically close after pressing a menu link on the mobile version and not staying open, hindering the view? For the UX it is quite bothersome. Someone who presses a link wants to see the content and not have to press the “X” manually everytime.

    Much appreciated.

    Best regards

    Manathan
    Keymaster
    Themosaurus Support
    • 0 Topics
    • 6297 Posts
    @themodactyl

    Hi Neo,

    the navigation should be closed when going to another page. 🤔

    My best guess is that your issue might probably caused by some conflicting third party plugin or some extra code snippet as we don’t encounter this issue with our demos.

    Could you deactivate all plugins that have not been installed with your theme during its setup and all existing custom PHP code snippets please? And then, could you confirm me that the issue is still persisting please?

    Please also make sure that you have the latest theme version and that all recommended plugins are up-to-date. Finally, you could also consider clearing all activated caching system as well as your browser cache before investigating any further. If you want to read more on what browser cache is and how to clear it, here is an article that might help you: How to Clear Internet Cache in Every Major Browser.

    We’re waiting for your feedback.

    Best,

    Neo
    Participant
    • 5 Topics
    • 10 Posts
    @neocortex

    Hi Manathan,

    thank you for your answer. I forgot to mention, that it is a scrolling page with anchors, and it only happens on the scrolling page. The menu closes when pressing a link, where it goes to another page.

    Thank you!

    Best regards,
    Neo

    Manathan
    Keymaster
    Themosaurus Support
    • 0 Topics
    • 6297 Posts
    @themodactyl

    Thank you for this specification Neo. We’ll get you an answer as soon as possible. 🙂

    We really thank you for your patience!

    Kind regards,

    Manathan
    Keymaster
    Themosaurus Support
    • 0 Topics
    • 6297 Posts
    @themodactyl

    Hi Neo,

    Thank you for your patience. 🙏🏼

    It would be indeed very nice to close automatically the menu when clicking on an anchor. Please be aware that it is not standard behaviour with our theme and WordPress.

    However, note that I took the liberty to move this topic to our Feature Requests forum. As your idea could be a nice addition to our theme, we will implement this feature if other community members upvote your request.

    We’ll keep you informed. Thank you very much for contributing to this theme!

    Best regards,

    Neo
    Participant
    • 5 Topics
    • 10 Posts
    @neocortex

    Hello Manathan,

    that’s unfortunate. Thank you for bringing it to the Feature Request forum. Is there a link where I can observe the progress on the same?

    Also is there a quick workaround for this through custom css? Or I guess this would be javascript?

    Thank you!

    Best regards.

    Neo
    Participant
    • 5 Topics
    • 10 Posts
    @neocortex

    Hi,

    to my investigation it seems to be a few lines of code which should be possible to implement without much effort (hopefully).

    The code should look sth like this:

    $( '.menu a' ).on("click", function(){
      $('.menu').removeClass('open');
    });

    source

    In the case of this theme, it would mean switching back from navbar-collapse-show to navbar-collapse-hide, when a user presses a list menu item.

    I cannot think of a situation where this would not be wanted, so I think it is quite necessary. Also scroll pages on mobile view are not uncommon.

    I hope it helps and can be implemented quickly without much effort.

    Manathan
    Keymaster
    Themosaurus Support
    • 0 Topics
    • 6297 Posts
    @themodactyl

    Hi Neo,

    Thank you for sharing this with us.

    It might seems quite simple, but it is not. This feature is specific on your site, but it might create some issues with other menus (mega menu, accordion menu, BuddyPress menu, …).

    In order ta add this feature, it will require some investigation to make sure it will be compatible on every website using our theme. There is a reason that WordPress did not integrate this in they core.

    Be sure that we will implement this feature if other community members upvote your request. 🙂

    Thank you for your contribution. 🙏🏼

    Best,

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.

Troubleshooting Demo Imports

You're trying to setup your theme but you're experiencing errors when importing the demo content? Or you've just followed the setup guide but your website doesn't look exactly like our demo? These are common issues for which you can find easy and quick fixes.

Happy With our Support So Far?

Feel free to review our theme on Themeforest! It helps us making our products more known to new potential customers, which allow us more time to improve the quality and develop new features. #SharingIsCaring ❤️

Discover MatchPress

Skip • Like • Super-Like

Add powerful matching features like Member likes, skips, super likes, conditional private messaging and much more.

Setup Your Cera or Gwangi powered Community Website and Turn it into an iOS and Android App

15% discount for Cera users

To unleash the full power of your Cera or Gwangi theme, we have partnered with the Zipline team. Your community website can now be fully setup and turned into your very own custom app for iOS and Android.

Whether you've newly acquired the theme or already got your site up and running, Zipline got you covered. And we got you an incredible discount.

Holiday, Weather & Festive effects
to pimp your WordPress Site