Home Forums WoodMart support forum Mobile Menu click dropdown

Mobile Menu click dropdown

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #591136

    A1Community
    Participant

    hello,

    I have seen many mobile menus have the option to click on a page name and then dropdown when the page title is under custom link # for example. If you look at the mobile menu of woodmart main demo you can see there is an arrow on the right hand of the page title (PAGE). Lets say the Page title is a custom link # and i we want to have only the sub pages under (PAGE) to be active. Can we have the option to press (click) on the word (PAGE) on the mobile menu so it can dropdown like the same way when we click on the arrow and then it dropdown?

    Thanks

    #591229

    Hello,

    Try to add the code below in Theme Settings > Custom JS.

    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();
    });

    Best Regards.

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