• Resolved Liz

    (@lizery)


    I am trying to fire the MMM on mobile using my toggle button but I can’t get the javascript to open or close the menu. I have a click function on my toggle button and the function:

    current_menu = jQuery('ul#mega-menu-main');
    current_menu.data('maxmegamenu').showMobileMenu();

    I have a console log in there too and that is firing, so I know it’s being seen, but the menu does nothing. Is this possible with the pro version?

Viewing 1 replies (of 1 total)
  • Thread Starter Liz

    (@lizery)

    I figured it out. For anyone looking, I triggered the default toggle with jQuery('.mega-menu-toggle').trigger("click"); and hid it with css.

Viewing 1 replies (of 1 total)
  • The topic ‘Menu Toggle javascript function’ is closed to new replies.