fbpx

Tap Anywhere on Mobile Menu Item for Dropdown

HomeTopicsSupport forumTap Anywhere on Mobile Menu Item for Dropdown
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #18087
    Avatar
    stas.kasymsky
    Participant

    Hello. I need the submenu in the mobile version to open when you click on an item. (now opens only when you click on the arrow)

    https://skr.sh/sDSnKxqXlvI?a

    I found this code but it works for woodmart. How can I apply it for the Sylvia theme?

    jQuery(‘.mobile-nav’).on(‘click’, ‘.wd-nav-mobile li.menu-item-has-children > a’, function(e){
    e.preventDefault();
    jQuery(this).parent().find(‘> .wd-nav-opener’).click();
    });

    #18091
    Artem Temos
    Artem Temos
    Keymaster

    Hello,

    Try to use the following code snippet to the Sylvia theme

    jQuery('.xts-side-mobile').on('click', 'li.menu-item-has-children > a', function(e){
        e.preventDefault();
        jQuery(this).parent().find('> .xts-submenu-opener').click();
    });

    Kind Regards

    #18094
    Avatar
    stas.kasymsky
    Participant

    Cool! )) It works. Thank you very much!

    #18095
    Artem Temos
    Artem Temos
    Keymaster

    You are welcome!

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Tap Anywhere on Mobile Menu Item for Dropdown’ is closed to new replies.

Sign in

No account yet?

Create an Account