Hello,
I tried adding this piece of code to collapse the mobile menu when clicking on a item, it worked fine, but I have one menu item that has sub items, what changes do I need to make to the code to not do it on menu items that have sub items?
The site is https://revivernyc.com
jQuery(document).ready(function($){
$(‘.x-nav-wrap.mobile .x-nav a’).on( “click touchstart”, function() {
$(‘.x-nav-wrap.mobile’).removeClass(‘in’);
});
});