Collapse Mobile Menu After Clicking Menu Button

Hi There,

How do I get the mobile menu to close automatically after a menu item has been clicked?
I tried following the below but didn’t have any luck.

Regards,

Marc

Hi Marc,

Please try this:

jQuery(document).on('click touchstart', '.x-navbar .mobile .x-nav li ', function(){

jQuery('#x-btn-navbar').trigger('click');

} );

Note by default X theme has no fixed navigation. Further customization from here would be getting to custom development which is outside the scope of our support. Thank you for understanding.

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