Hi,
I was wondering if you could assist with Submenu’s on mobiles. They are working fine however if I click to expand this is causing the mobile menu to close & when clicked on again the submenu is open.
I had this code I used to use for this however it no longer works.
jQuery(document).ready(function($) {
var subMenuLink = $(’.x-navbar .mobile .x-nav li.menu-item-has-children > a’);
subMenuLink.on(‘click touchstart’, function(e) {
e.preventDefault();
var $this = $(this);
$this.find(’.x-sub-toggle’).off(‘click touchstart’);
$this.closest(‘li.menu-item-has-children’).toggleClass(‘x-active’);
$this.siblings(’.sub-menu’).slideToggle(300);
});
});
I will send website credentials privately