How can I auto-close the mobile menu after a link click?

Topic summary

  • Goal: Auto-close the mobile navigation menu after tapping a link, without requiring a second tap on the close (X) button. User asks for a code-based approach and where to place it in the Origin theme.

  • Support response: Requested the site URL (and password if applicable) to provide a precise solution.

  • Status: User supplied the URL (operationheadshots.com). No code or implementation guidance has been shared yet; resolution pending and discussion remains open.

Summarized with AI on January 29. AI used: gpt-5.

Hello!

I am trying to get the mobile menu to auto-close after clicking on a link rather than clicking on the X to close it.

Can you help me with some code and where should I insert it? I have the Origin theme and I don’t know how to figure this.

Thank you!

Hi @Andrei_3 ,

To provide you with the most precise solution in this case, could you please share your page URL ( with pass if your store password is enabled )?

Thank you and hope to hear from you.
Best regards,
GemPages Support Team

https://operationheadshots.com/