Accordion Menu


Check out the menu on the left of this page to see a live demo of the Accordion menu.

Creating an Accordion Menu

Use the Widget or Shortcode method to add a new menu to your site.

Accordion menus are built in exactly the same way as a standard WordPress menu.

To switch your menu from a horizontal (default) to a vertical accordion menu, select “Accordion” from the Orientation dropdown in the Max Mega Menu settings:


The accordion menu will respect the ordering and hierarchy of the menu.

Just like any other menu created with Max Mega Menu, you have full control over the styling of the menu using the Theme Editor.

You can create as many accordion menus as you need, outputting each one using either a shortcode, widget or PHP code.

Accordion Behaviour

A new option – Accordion Behaviour – will appear when the orientation is set to ‘Accordion’. There are two options:

  • Keep Active Sub Menus Open – this will automatically open sub menus when you are on a sub page. This is the setting we’re using for the demo on the left (note how the “Pro Features” sub menu is automatically expanded because we’re on a sub page).
  • Always Close Sub Menus – all sub menus will be closed on page load. Users must click or hover over a heading to reveal a sub menu.

To avoid terrible menu design, the event should be set to ‘Click’ for accordion menus.

Accordion Menus respect the ‘Second Click Behaviour’ setting defined under Mega Mega > General Settings. We have it set to ‘First click opens sub menu, second click closes sub menu’. If you would prefer for users to be able to click through to top level menu item page, set ‘Second Click Behaviour’ to ‘First click opens sub menu, second click follows link’.


Like what you see? This functionality is available in Max Mega Menu Pro

Related Articles