Make Mobile Modal Disappear on Link Select

Hi Guys
I have a mobile modal that pops up.

The home page has scrolling links, so the page scrolls to the content when you click the link.

Is there a way to make the modal disappear when it scrolls to an ID?
As right now it scrolls, but the menu stays visible unless you visit a new page.

Hi There @smallsaul

Thanks for writing in! Basically your request is outside the scope of the support, however I will give you a general idea on how to implement this. Basically you can bind modal close event to your mobile menu clicks.

jQuery('.x-modal-close').trigger('click');

For detailed information, please refer (https://theme.co/apex/forum/t/open-close-modals/14807/2).

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.