Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Rombey

    (@rombey)

    Oky sry I’m pushing a bit 😉

    Plugin Author megamenu

    (@megamenu)

    Hi Rombey,

    Please take a look at this link:

    https://maxmegamenu.com/documentation/faqs/hide-mobile-menu/

    It wont disable the plugin at certain widths, it will just hide the menu. You can replace $reponsive_breakpoint with 700px or a value of your choice.

    Regards,
    Tom

    Thread Starter Rombey

    (@rombey)

    Ahhh thy for answer…okay it works but now my default menu is also hide…how can I dispayed my default menu at this width???

    Plugin Author megamenu

    (@megamenu)

    Hi Rombey,

    MMM completely replaces your theme menu, it is not possible to display your old menu because it is no longer there (I’m assuming your theme is using the same menu to display the desktop and mobile menu).

    You would need to:

    1. Disable MMM for your theme – put it back to how it was.
    2. Hide your theme menu on desktops (so it only displays on mobiles).
    3. Create a new menu location just for Max Mega Menu under Appearance > Max Mega Menu > General Settings (rename the new location to ‘Desktop Menu’)
    4. Insert the given PHP code into your themes header.php file, just above or below the existing wp_nav_menu call. You now have 2 menus output by your theme.
    5. Assign your menu to the Desktop Menu location and enable MMM for it.
    6. Use the code from my last reply to hide the Desktop Menu on mobiles (so it only displays on desktops).

    You should now have 2 menus:

    – Your theme menu, only displayed on mobiles
    – Your mega menu, only displayed on desktops

    Regards,
    Tom

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

The topic ‘Disable the Plugin at fix width’ is closed to new replies.