I know, there have been several posts about this issue but I could not find a solution. Just in case the problem isn’t clear: when you have an inline navigation with top-links containing sub-links, the top-links isn’t clickable as a link that redirects on a touch device. Instead, it opens the sub-menu.
I did find this code from 2018 which does not seem to work anymore (at least for me)
jQuery ( function($) {
$('.x-menu-dropdown .menu-item-has-children > .x-anchor').on('mousedown touchend', function(e) {
if ( (!$(e.srcElement).is('.x-anchor-sub-indicator')) && (!$(e.srcElement).is('.x-anchor-content')) ) {
var $this = $(this);
$this.siblings('ul').hide();
window.location = $(this).attr('href');
}
});
});
Could someone assist me with this problem? The website is https://blendit.nu
Many thanks!
