In a 2015 post, a support member gave this solution to make not only the arrows toggle the submenu:
2: Open the submenu items when clicking the whole parent link and not just the arrows. To achieve it, add following JS code under Custom > JavaScript in the Customizer:
// Expand Submenus on Parent Menu Click (for mobiles)
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 just tried the code, but it doesn’t work witho today’s X theme. After adding the code, neither the title nor the arrows let the subenu appear …
Can you provide an update to that code?
Thank you!
Uli