Mobile menu : close once link to same page is clicked

3 replies · opened Feb 26, 2022

DDavegdrFeb 26, 2022

Is it possible to close the mobile menu once a link (to a section on the same page) is clicked? Thanks!

SSemicolon WebSTAFFFeb 28, 2022

Hello,

You can consider using the following JS Code at the bottom of the Page:
[ch_pre]<script>
jQuery('.one-page-menu').on( 'click', function(){
SEMICOLON.header.menufunctions();
});
</script>[/ch_pre]

This should definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

DDavegdrFeb 28, 2022

Apologies, I didn't mean on a one-page menu.

On the "intro.html" -> when you click on the primary menu on a mobile device "Home" -> "niche demos" : it will scroll to the niche demos but the menu remains open. Is there a way to close the menu once the link is clicked & the scroll starts?

SSemicolon WebSTAFFFeb 28, 2022

Hello,

Unfortunately, this is currently not supported out of the box. You will need to edit the Source JS Files manually to implement this. You can simply add the SEMICOLON.header.menufunctions(); Function inside the click Event.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard