Hi @clefler,
I checked your menu and the hierarchy structure and tested the following code with it. It seems working with your Chapter menu, please add the following code into the Theme Options > JS.
jQuery(function($)
{
jQuery('.x-anchor-menu-item').on( 'click', function()
{
console.log(jQuery(this).attr('href'));
if(jQuery(this).attr('href')!="#")
{
jQuery('.x-modal-close').trigger('click');
}
});
});
Please remember that the above code will work if copied as it is and don’t conflict with any existing style.
Please note that the code provided serves only as a guide to help you get started custom coding on your own if there’s no option offered in our theme or the products we bundle.
We really do not provide support for custom codes that means we can’t fix it in case it conflicts with something on your site nor will we enhance it.
Note: checked the above code adding through the browser console debugger and found it’s working. Please find the video attached in the secure note.
Hope it works.
Thanks