How to create mega menus in Divi
Divi 4 can create a basic multi-column mega menu from Appearance > Menus by adding the CSS class mega-menu to a top-level item. Divi 5 also has a Dropdown module for custom layouts, while a plugin is quicker when you need images, animations, responsive controls, or Divi Library content.
- 01Plan the menu structure
- 02Build the WordPress menu
- 03Choose your Divi route
- 04Enable the mega menu class
- 05Style and check the dropdown
- 06Use a plugin for richer menus
What you need
- A WordPress site using Divi 4 or Divi 5
- Administrator access to WordPress
- A planned menu structure with parent and child items
- A staging site or recent backup if editing a live header
Plan the menu structure
Group related links before opening Divi. A typical mega menu has one top-level trigger such as Services, followed by several parent categories, each with its own child links.
Keep the first level short and use clear category labels. A large menu becomes difficult to scan when every item is given the same visual weight.
Build the WordPress menu
Go to Appearance > Menus and create or edit the menu assigned to your Divi header. Add one top-level item to act as the mega menu trigger, then place category items beneath it and indent their related links beneath those categories.
For Divi 4, this hierarchy is what Divi uses to form the columns. Make sure the category items are siblings under the trigger rather than nested one inside another.
Choose your Divi route
If you use Divi 5, build the menu in the Theme Builder with a Dropdown module inside the relevant link or navigation layout. Divi 5 allows you to design the dropdown with Divi content and create separate desktop and mobile arrangements.
With Divi 4, the built-in menu route is best for text links and simple columns. It does not provide the same visual control as a Divi Builder layout, so plan to use custom CSS or a plugin if the dropdown needs images, calls to action, or unusual layouts.
Enable the mega menu class
In the WordPress menu editor, open Screen Options and enable CSS Classes if the field is hidden. Expand the top-level trigger item and enter mega-menu in its CSS Classes field, then save the menu.
Divi’s native mega menu is activated by this class on the main menu item. The child structure remains important: the trigger must contain the category items, and each category must contain its own links.
Style and check the dropdown
Open the header in the Divi Theme Builder and use the Menu module’s design settings for fonts, colours, spacing, dropdown background, and mobile menu styling. Add custom CSS only after the hierarchy works.
Check the menu at desktop, tablet, and phone widths. Common failures include the CSS Classes field being disabled, the class being added to the wrong item, a submenu being indented at the wrong level, and custom CSS or cached Divi CSS hiding the dropdown. If changes do not appear, clear Divi’s static CSS cache and any caching plugin cache.
Use a plugin for richer menus
The native Divi 4 method is fine when you need a simple text-based mega menu. For multi-column layouts containing Divi Library layouts, images, icons, search, WooCommerce elements, animation, hover or click triggers, and separate responsive controls, a dedicated plugin avoids building and maintaining the extra CSS and layout work.
Supreme Mega Menu For Divi Pro adds those controls to Divi menus and supports horizontal and vertical layouts, responsive settings, badges, animations, custom media, and Divi or third-party modules. Add it after confirming the native route cannot provide the content or behaviour your header needs.
Let Supreme Mega Menu For Divi Pro do it
Divi Builder mega menus with multi-column layouts, animations, and responsive controls for complex site navigation.
Sources
- elegantthemes.com /blog/divi-resources/how-to-build-mega-menus-with-divi-5s-dr…
- elegantthemes.com /documentation/divi/mega-menus/?utm_source=openai
- elegantthemes.com /blog/divi-resources/how-to-create-a-custom-ecommerce-mega-m…
Questions
- Can Divi create a mega menu without a plugin?
- Yes. Divi 4 can turn a standard WordPress menu into a basic mega menu by placing category and child links beneath a top-level item and adding the CSS class mega-menu. Divi 5 provides a more visual Dropdown module. The native Divi 4 method is limited mainly to menu links and CSS styling, so richer content may still require a plugin.
- Where do I add the mega-menu CSS class in Divi?
- Add mega-menu to the CSS Classes field of the top-level WordPress menu item that should open the dropdown. Go to Appearance > Menus, open Screen Options, enable CSS Classes if necessary, expand the item, enter the class, and save the menu. Do not add the class only to a child category or individual link.
- Why is my Divi mega menu showing as a normal dropdown?
- A normal dropdown usually means the mega-menu class is missing, entered on the wrong menu item, or the menu hierarchy is incorrect. The trigger must be the top-level item, with category items directly beneath it and their links beneath those categories. Also clear Divi’s static CSS cache and other site caches after changing the menu.
- Can I put images and Divi modules inside a native mega menu?
- Not conveniently in Divi 4’s native WordPress-menu method. It is designed around nested menu links, with styling controlled by the Menu module and CSS. Divi 5’s Dropdown module supports a more visual builder-based approach. For Divi 4 sites needing images, Divi Library layouts, search, cart elements, or interactive content, a dedicated mega-menu plugin is the practical route.
- Should the mega menu use hover or click on mobile?
- Use hover for desktop pointers only and make the mobile version open by tap. Hover interactions do not work reliably on touch devices, and a large dropdown can also overflow a narrow screen. Test the collapsed and expanded states on phones, then provide enough spacing and a clear way to close or move past the menu.