• Resolved Reaxion

    (@reaxion)


    Hi,

    I’m using the free Mega Menu plugin and all is good, however, I’d like to use my own mobile menu vs the mobile menu supplied with the plugin.

    There is a selection to disable the mobile menu, but that’s not accurate. What it does is disables the menu altogether, it does not disable the PLUGIN for mobile, if that makes sense.

    I want to output the main menu on mobile, I just don’t want to display what the plugin does for mobile devices. How can I display the main menu (primary menu) while not using the plugin?

    Thanks!

    The page I need help with: [log in to see the link]

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

    (@reaxion)

    Solved my own question!

    My main menu for desktop uses “main-menu” to output the menu and now, to make it different and unaffected by the plugin, I output the menu as “primary”. I admit I’m not coder enough to give a great explanation, so I’ll post my differences in code below:

    Before:

    <?php wp_nav_menu( array( 'theme_location' => 'main-menu', 'items_wrap'  => '<ul class="nav vertical menu accordion-menu" data-accordion-menu>%3$s</ul>' ));?>

    After:

    <?php wp_nav_menu( array( 'menu' => 'primary', 'items_wrap'  => '<ul class="nav vertical menu accordion-menu" data-accordion-menu>%3$s</ul>' ));?>
    

    Naturally the above outputs hook into other things going on in my custom site, but hopefully it will allow anyone to figure out their own customization.

Viewing 1 replies (of 1 total)
  • The topic ‘Disabling Mobile Menu Disables the Menu Altogether’ is closed to new replies.