I want to close humburger menu when clicked/touched

Hi there,

Thanks for great theme.

I’d like to know about mobile nav menu(humburger menu).

I want the menu closed when click or touch the menu list but it seems it doesn’t work because of the anchor link to same page. I’m using it like a landing page. How can I fix this?

One more question.

Is it possible that setting the humburger menu always? Not only mobile device. Please let me know the way to modify the theme if possible.

Hi @koss,

I hope you are well today and thank you for your questions.

I want the menu closed when click or touch the menu list but it seems it doesn’t work because of the anchor link to same page. I’m using it like a landing page. How can I fix this?

I tested it on my test site and found it is getting closed on clicking on the menu link. Basically what happens on clicking on the menu link is that the site gets reloaded causing menu to close.

Is this not happening on your site?

If not then could you please share me your site URL where it’s happening so that i can troubleshoot it?

Is it possible that setting the humburger menu always? Not only mobile device. Please let me know the way to modify the theme if possible.

You can achieve this by developing custom CSS code as developed in the following topic for Sparkling theme.

https://colorlibsupport.com/t/ie-header-logo-issue/#post-67135

Best Regards,
Movin

Hello Movin,

Thank you very much for the quick answer!

Regarding closing the hamburger menu, I found out the way to solve the problem by your advice. The problem is that I set the URL in Custom link in [Appearance > Menu] as just like “#xyz” instead of absolute path. Now I can solve this problem with the absolute path like “http://sample.com/abc#xyz” that gets reloaded as you mentioned. That was a big help for me. Thanks!

I will try hamburger-always too.

Have a nice weekend!
Koss

You are most welcome here :slight_smile: