Site logo

Archived topic

mobile menu dropdown userunfriendly

19 replies · Started by John on December 20, 2018

Viewing posts 16–20 of 20

Hi Tom,

you wrote:
"One possible solution is using the first tap on mobile to open the sub-menu, and the second tap to go to the link. That might be a feature we add in the near future."

Is the feature you described already part of GP?

Thanks
Andy

Unfortunately not.

Any hack for this?

Thanks
Andy

Not without custom javascript development, unfortunately.

This is something that's still on my mind. I'd like to completely re-write how sub-menus work with the theme in one of the next few big updates.

Good news. Looking forward to it.

Meanwhile this code snippet, based on jQuery, could perhaps help somebody...

jQuery.noConflict();
jQuery(document).ready(function() {
jQuery('#menu-main-menu a').click(function (e) {
        if (jQuery(this).parent().hasClass('menu-item-has-children') && jQuery(this).parent().children('ul').hasClass('toggled-on') != true) {
            jQuery(this).parent().children('ul').addClass('toggled-on');
            e.preventDefault();
            return false;
        }
    });
});
This archived topic is closed to new replies.