Home Forums WoodMart support forum Menu drop downs

Menu drop downs

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

    papers
    Participant

    I have drop downs on my main menu, the parent of the menu items do not click through to anything they have a hover to drop down on desktop. On mobile however you need to tap the small arrow to get the drop down and the parent does nothing if clicked, is there a way to have the whole parent name and arrow as a button to drop down?

    • This topic was modified 4 months, 3 weeks ago by papers.
    Attachments:
    You must be logged in to view attached files.
    #574839

    Hello,

    Navigate to Theme Settings > Custom JS > Add the following code.

    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.

Tagged: 

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