Hi.
Create custom.js file following Helix documentation. And add the following code to it by choosing one of the options.
- Click on any link in the menu will close it
jQuery(function($){
$('.offcanvas-inner ul.menu > li > a').bind('click', function(){
$('.close-offcanvas').trigger('click');
});
});
- Click only by the link you need will close it. To do this, add your own class to link in the menu item settings. And change this in the script to your class.
jQuery(function($){
$('.YOUR_OWN_CLASS').bind('click', function(){
$('.close-offcanvas').trigger('click');
});
});