Mega Menus allow users to see more links all at once without the hassle of scrolling, hovering, and remembering the contents of your menu.
Mega Menus can be thought of as drop-down menus within drop-down menus. Unlike a regular dropdown menu that displays a submenu when hovering over the main parent links in your navigation bar, a mega menu provides you with the ability to have additional parent links and submenus within the dropdown menu.
This allows for a more organized and comprehensive navigation experience for the user.
How To Add A Mega Menu To Your Navigation Bar
Log in to your WordPress dashboard and go to Appearances โ Menus
Create a menu with four parent links, each with their submenu links. In the example below, I'm adding three submenu items under each of the four parent menu links.
Create an additional link to serve as your Megamenu link. For the example below, I'm calling this link Features. Then, drag the four parent menu links (each with submenu links) under the Features link.
To create a Megamenu, you need to add a special CSS class called
mega-menu
to the main top-tier link. To do this, click on the Screen Options link at the top of your page and make sure the CSS class option is checked. This will allow you to add the necessary class to your link and create a Megamenu with ease.Add the CSS class
mega-menu
to the Features link you created. Click the arrow on the right of the Features menu item to toggle the additional configuration options. Find the CSS Classes text box and enter themega-menu
class.
When you reload your page, you can see that all those previous menus have been placed in the one giant menu under this link, the Mega Menu.