Title: Max-mega-menu custom trigger doesn&#8217;t work
Last modified: December 31, 2022

---

# Max-mega-menu custom trigger doesn’t work

 *  Resolved [Mark](https://wordpress.org/support/users/cybertech537/)
 * (@cybertech537)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/max-mega-menu-custom-trigger-doesnt-work/)
 *     ```wp-block-code
       jQuery(document).ready( function( $ ){
   
           $('.bar-icon').on('click', function (e) {
   
               $(this).toggleClass('active-bar');
               $('.max-mega-menu').data('maxmegamenu').showMobileMenu();
               $('.max-mega-menu').data('maxmegamenu').hideMobileMenu();
   
           })
   
       })
       ```
   
 * Hi, I would like to add a custom trigger button to show/hide the max-mega-menu
   on mobile. I have read the documentation carefully and have written the code 
   but it doesn’t work.
    -  This topic was modified 3 years, 5 months ago by [Mark](https://wordpress.org/support/users/cybertech537/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmax-mega-menu-custom-trigger-doesnt-work%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [megamenu](https://wordpress.org/support/users/megamenu/)
 * (@megamenu)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/max-mega-menu-custom-trigger-doesnt-work/#post-16335174)
 * duplicate of [https://wordpress.org/support/topic/custom-trigger-is-not-working-for-mobile-menu/](https://wordpress.org/support/topic/custom-trigger-is-not-working-for-mobile-menu/)

Viewing 1 replies (of 1 total)

The topic ‘Max-mega-menu custom trigger doesn’t work’ is closed to new replies.

 * ![](https://ps.w.org/megamenu/assets/icon-128x128.png?rev=1489843)
 * [Max Mega Menu](https://wordpress.org/plugins/megamenu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/megamenu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/megamenu/)
 * [Active Topics](https://wordpress.org/support/plugin/megamenu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/megamenu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/megamenu/reviews/)

## Tags

 * [max mega menu](https://wordpress.org/support/topic-tag/max-mega-menu/)

 * 1 reply
 * 2 participants
 * Last reply from: [megamenu](https://wordpress.org/support/users/megamenu/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/max-mega-menu-custom-trigger-doesnt-work/#post-16335174)
 * Status: resolved