How To Build Mega Menus With Divi 5’s Dropdown Module

Posted on April 27, 2026 by Leave a Comment

How To Build Mega Menus With Divi 5’s Dropdown Module
Blog / Divi Resources / How To Build Mega Menus With Divi 5’s Dropdown Module
Play Button

Divi 5 gives you a much more flexible way to build navigation than older Divi workflows. With the Link and Dropdown modules, plus features like Canvases, the Loop Builder, Interactions, and visibility settings, you can create custom dropdowns and mega menus directly inside Divi without relying on third-party plugins or custom code.

In this post, we’ll walk through a step-by-step approach to building a custom mega menu in Divi 5, including a separate mobile version.

Let’s get started.

What Is The Dropdown Module?

The Dropdown module in Divi 5 is a dedicated container for building dropdown menus and mega menus. When you place a Dropdown module inside a parent element, such as a Link module, Divi connects the dropdown’s behavior to that parent element. That means the Dropdown module can work as part of a navigation item instead of feeling like a separate floating layout.

Subscribe To Our Youtube Channel

This is a major change from older Divi menu workflows, where more advanced dropdown layouts often meant relying on the standard Menu module, the Theme Customizer, or custom code. In Divi 5, the Dropdown module gives you a flexible area where you can place Groups, Rows, Columns, Links, loops, and other modules to create the exact submenu layout you need.

For simple navigation, you can add a few Link modules inside the Dropdown to create a clean submenu. For more advanced layouts, you can build out multiple columns, featured content, icons, or looped content to create a full mega menu.

The Dropdown module also gives you direct control over positioning, alignment, offset, layout direction, and trigger behavior, which makes it much easier to tailor your menus inside the Visual Builder.

Dropdown module settings in Divi 5

The result is a menu-building workflow that is more visual, more flexible, and much easier to customize than the older all-in-one approach.

How To Use Divi 5’s Menu Features Together

Divi 5’s menu tools work best when you think of them as separate building blocks. For some menus, the Link and Dropdown modules are enough. For more advanced navigation, Canvases, Interactions, Loop Builder, and visibility settings let you expand the structure without leaving the builder.

Here’s how each piece fits into the process:

Link Module

The Link module acts as the navigation item itself. You can use it for static links, dynamic page links, and menu-based items. It is the starting point for most custom menu structures in Divi 5.

Link module in Divi 5

Dropdown Module

The Dropdown module is the submenu container. You place it inside a parent element, usually a Link module, and then build the submenu content inside it. That content can be as simple or as complex as you need.

Dropdown module in Divi 5

Canvases

Canvases let you create detached layouts that live outside the main page structure. They are especially useful for things like mobile menus, off-canvas menus, slide-ins, and overlays. In this tutorial, we’ll use a Canvas to build a separate mobile menu rather than forcing both menu experiences into one layout.

Divi 5 Canvases

Interactions

Interactions handle the behavior around your menu. The Dropdown module already covers the basic opening and closing behavior for standard dropdowns, but Interactions become useful when you want to launch a mobile menu, trigger a Canvas, or hide and show elements at specific breakpoints.

Divi 5 Interactions

Loop Builder

The Loop Builder makes a menu dynamic. Inside a Dropdown or Canvas, you can use loop-enabled modules to pull in posts, projects, products, pages, or other content automatically. That makes it possible to build a submenu that updates itself as content changes on your site.

Divi 5 Loop Builder

Visibility Settings

Visibility settings help control what appears when and where. They are useful when you want to hide desktop menu elements on smaller screens, keep a mobile menu hidden until triggered, or simplify which pieces are active at different breakpoints.

Divi 5 visibility settings

When you combine these tools, you can build everything from a simple dropdown to a multi-column, content-driven mega menu with a separate mobile experience.

How To Build A Mega Menu With Divi 5

Now that we have the core pieces in place, we can build the menu. By the end of this tutorial, you’ll have a desktop header with custom dropdowns and a separate mobile menu built in a Canvas.

Step 1: Create The Desktop Header

Start by creating a new Global Header template in the Theme Builder.

Create a new global header template in Divi 5

When the Visual Builder loads, select the Section and add a Background Color in the Content tab. Then switch to the Design tab and add 15px of padding to the top and bottom.

Header section spacing in Divi 5

Next, open the Advanced tab, expand the Position settings, and set the Z Index to 999. This helps keep the header and dropdowns above the page content when they open.

Set z-index for the header section in Divi 5

Finally, open Scroll Effects and set the section to Stick to Top.

Set the header section to stick to top in Divi 5

Now add a single-column Row to the section and edit the Row’s Column settings.

Edit the header row column in Divi 5

In the Design tab, expand the Layout settings and set Layout Direction to Row, Justify Content to Space Between, and Align Items to Center. This gives you a clean horizontal header layout with room for a logo, navigation, and supporting elements.

Header column layout settings in Divi 5

Step 2: Add The Main Navigation Elements

Start by adding an Image module for your logo. Use the Sizing settings in the Design tab to adjust it across breakpoints. Use the Customizable Responsive Breakpoints feature and the Responsive Editor to fine-tune its size for different devices.

Before moving on, go back to the Content tab and assign a dynamic homepage link to the logo.

Add A Group Module

Next, add a Group module to the row to hold the desktop navigation links. This gives you a cleaner way to manage the desktop menu as one unit, especially when you later decide what should appear or disappear at smaller breakpoints.

In the Group’s Design tab, expand Layout and set Layout Direction to Row, Justify Content to Space Between, and Align Items to Center.

Group layout settings for desktop navigation in Divi 5

Add Link Modules

Now start adding your navigation links. Add a Link module and enter a label in the Text field.

Set link text in a Divi 5 Link module

Expand the Link settings and use the dynamic content icon if you want to assign a dynamic Page Link.

Open dynamic link options in the Divi 5 Link module

When the modal appears, choose Page Link.

Choose a page link in Divi 5 dynamic content

Use the page selector to choose the right page, then click Apply.

Apply a dynamic page link in the Divi 5 Link module

Switch to the Design tab to style the link, including font, weight, style, color, and text size.

Style a Link module in Divi 5

Use Divi’s hover controls if you want the link appearance to change on hover.

Hover settings for a Link module in Divi 5

Set a hover Color and Border if desired.

Hover border styles for a Link module in Divi 5

When you finish styling the hover state, switch back to the default desktop state before continuing. That keeps your future edits from being applied only to the hover version.

Once one Link module is styled, duplicate it to create the rest of your top-level links, then update the text and destination for each one.

Add Additional Header Modules

To finish the top-level header, add a Button and an Icon module. The Icon will act as the mobile menu trigger later, so choose something recognizable, such as a hamburger icon, and style both modules to match the rest of your header.

Hamburger icon in a Divi 5 header

Step 3: Build The Dropdown Menus

With the top-level navigation in place, we can now build the actual dropdowns. In this tutorial, we’ll create one traditional dropdown made of links and one content-driven submenu that uses the Loop Builder to display recent Projects.

Add A Dropdown Module

Start with the second menu item. Open its Link module, go to the Elements area in the Content tab, and click + Add Element.

Add a new element inside the Link module in Divi 5

Select the Dropdown module from the module picker.

Select the Dropdown module in Divi 5

Inside the Dropdown, add a Group. Then add a Link module inside that Group.

Before configuring the inner Link module, style the Dropdown itself. Open the Dropdown module and go to the Design tab. In Layout, set the Horizontal Gap to 60px and the Layout Direction to Row.

Set horizontal gap for the Dropdown module in Divi 5

Set Dropdown layout direction in Divi 5

Then open the Dropdown settings and set Dropdown Alignment to Center and Dropdown Offset to 15px.

Dropdown positioning settings in Divi 5

Finally, open Border and assign a 10px border radius to the bottom corners.

Set border radius on the Dropdown module in Divi 5

Style The Group Module

Now open the Group inside the Dropdown. In the Design tab, expand Layout and set the Vertical Gap to 15px.

Vertical gap settings for a group inside a dropdown in Divi 5

Style The Inner Link Module

Select the inner Link module. Add a text label and assign a page link or other destination. If you want an icon next to each link, choose one in the Icon settings.

Choose an icon for a Link module in Divi 5

In the Design tab, style the icon with a color and size, then add a right margin to separate it from the text. If you want the icon color to change on hover, use the hover controls there as well.

Icon design settings for a Link module in Divi 5

Then style the link text in the Text settings.

Text design settings for a Link module in Divi 5

Once the first inner link is styled, duplicate it as many times as needed.

Then update the text, destination, and icon for each item. After that, duplicate the Group itself if you want multiple vertical link stacks inside the same dropdown. Those Groups will sit next to each other, creating the mega-menu effect.

Step 4: Add A Project Loop To Another Dropdown

Next, we’ll create another submenu that uses the Loop Builder to display the three most recent projects. The same idea works for posts or other post types too.

Choose the top-level Link module where you want this submenu. In its Elements area, add another Dropdown module. Apply the same core dropdown settings you used in the previous step:

  • Layout Direction: Row
  • Dropdown Alignment: Center
  • Dropdown Offset: 15px
  • Bottom Border Radius: 10px

Now add a Blurb module inside the Dropdown.

In the Blurb module’s Content tab, open the Loop settings and enable Loop Element.

Enable loop element in a Blurb module in Divi 5

Set the Post Type to Projects. If you only want to show items from a certain category or term, use the term filter there as well.

Loop settings for projects in Divi 5

Style the Blurb in the Design tab so the title and excerpt fit the rest of your menu design.

Style a looped Blurb module in Divi 5

Map The Dynamic Fields

Now map the Blurb fields to loop-based dynamic content. In the Blurb’s Content tab, use dynamic content on the Title field and select Loop Post Title.

Map Loop Post Title in Divi 5

For the body content, select Loop Excerpt.

Map Loop Excerpt in Divi 5

In Image & Icon, use dynamic content to choose Loop Featured Image.

Map Loop Featured Image in Divi 5

Finally, in the Link settings, map the Module Link URL to Loop Link.

Map Loop Link in Divi 5

Save the template before moving on.

Step 5: Build The Mobile Menu In A Canvas

For the mobile version, we’ll use a Canvas so the menu can live separately from the desktop header. Start by clicking the Canvas Grid View button in the builder toolbar.

Canvas Grid View in Divi 5

Click + Add Canvas.

Add a new canvas in Divi 5

Give the Canvas a name, set its Z Index to 999999, and click Add Canvas.

Canvas settings in Divi 5

The builder will prompt you to add layout structure. Choose a single-column Row.

Add a single-column row to a canvas in Divi 5

Before adding modules, configure the canvas layout. Select the Section, assign a Background Color, and add 15px of top and bottom padding.

Mobile menu canvas section spacing in Divi 5

Then edit the Row’s Column and set the Vertical Gap to 15px.

Adjust vertical gap for a canvas column in Divi 5

Add Modules To The Mobile Menu

Add a Link module to the column. Set its text and assign a destination, then style it to match your mobile design.

Style a mobile link in Divi 5

Duplicate the Link module to build out the top-level mobile navigation. Update the text and destination for each item. For menu items that should expand to reveal more options, it is often better not to assign a destination to the top-level trigger itself. That prevents accidental redirects when the user is trying to open the submenu.

Dropdown indicator icon for a mobile menu in Divi 5

For one of those expandable items, add a Dropdown module in the Link module’s Elements area. Style it with a border radius and top border if desired.

Mobile dropdown module styles in Divi 5

Then open the Dropdown settings and set Show Dropdown On to Click. That is usually the better trigger on touch devices.

Set mobile dropdown to open on click in Divi 5

Add as many inner Link modules as needed and style them to complete the submenu.

Style dropdown links in a mobile menu in Divi 5

Repeat this process for any additional mobile submenus.

Add The Bottom Buttons

To finish the mobile menu, add a Group below the links and place two Button modules inside it. One of these buttons will act as the close trigger for the mobile menu.

Because expanded dropdowns may make the canvas harder to work with, the Layers View can be the easiest way to place this Group directly beneath the link list.

Set the Group’s Layout Direction to Row and Align Items to Center.

Group flex settings for mobile menu buttons in Divi 5

Now style the two buttons. At this point, the mobile menu canvas should be fully built.

Completed mobile menu in Divi 5

Save the canvas before moving on.

Step 6: Add The Interactions

With both the desktop header and mobile canvas built, the last step is to connect everything with Interactions and visibility settings.

Mobile Menu Interactions

Start in the mobile menu canvas. Select the second Button module in the bottom Group and go to the Advanced tab. Open Interactions and add a new interaction.

Create a new interaction in Divi 5

Choose Click as the trigger.

Choose Click as the interaction trigger in Divi 5

Give the interaction an Admin Label, set the effect action to Hide Element, and choose the canvas section as the target. This makes that button close the mobile menu.

Create a close-menu interaction in Divi 5

Now select the canvas Section and use its Visibility settings to keep it hidden by default until it is triggered.

Hide the mobile menu canvas section by default in Divi 5

Save the canvas and use Canvas Grid View to return to the main header.

Desktop Header Interactions

Now decide how you want the desktop navigation to behave on smaller screens.

For the desktop link Group, you can use either breakpoint-based interactions or simpler breakpoint visibility controls. If the goal is only to hide the desktop nav at tablet and below, visibility settings are often the cleaner option. If you want the show and hide behavior tied to resizing events, breakpoint interactions are the better fit.

To follow the interaction-based route used in this tutorial, select the Group that contains the desktop links and add a Breakpoint Enter interaction set to Hide Element at Tablet Wide.

Hide desktop navigation on tablet and below in Divi 5

Then add a second Breakpoint Enter interaction set to Show Element at Desktop so it reappears when the layout returns to the desktop breakpoint.

Show desktop navigation again on desktop breakpoint in Divi 5

Repeat the same two interactions on the desktop Button module if you also want it hidden on smaller screens.

Hide desktop button on mobile in Divi 5

Show desktop button on desktop breakpoint in Divi 5

Finally, select the hamburger Icon in the main header. The most important interaction here is the Click trigger that reveals the mobile menu canvas section.

You can then use either breakpoint visibility settings or breakpoint interactions to keep the icon hidden on desktop and visible only on the smaller screen sizes where the mobile menu should take over.

Control hamburger icon visibility in Divi 5

At this point, you should have a working desktop mega menu and a separate mobile menu canvas.

Build Custom Mega Menus With Divi 5 Today!

Building a custom mega menu in Divi 5 is much more flexible now because the Link and Dropdown modules work alongside Canvases, Loop Builder, Interactions, and visibility settings. Instead of forcing everything through a single traditional menu structure, Divi 5 lets you build the navigation pattern that fits your project.

Whether you want a simple dropdown, a multi-column mega menu, a dynamic content-driven submenu, or a separate mobile overlay, these tools give you a visual way to build it inside the Visual Builder.

Download the latest release of Divi 5, start experimenting with custom menus, and adapt this structure to fit your own site’s navigation.

Divi Marketplace

Are You A Divi User? Find Out How To Get More From Divi! 👇

Browse hundreds of modules and thousands of layouts.

Visit Marketplace
Divi Marketplace
Divi Cloud

Find Out How To Improve Your Divi Workflow 👇

Learn about the new way to manage your Divi assets.

Get Divi Cloud
Divi Cloud
Divi Hosting

Want To Speed Up Your Divi Website? Find Out How 👇

Get fast WordPress hosting optimized for Divi.

Speed Up Divi
Divi Hosting
Premade Layouts

Check Out These Related Posts

How To Mask Text In Divi 5

How To Mask Text In Divi 5

Posted on April 26, 2026 in Divi Resources

Some design effects look more complex than they are. Text masking is one of them. It looks like something you would need Photoshop, custom CSS, or a developer to create, but the basic effect can be built directly in Divi 5 using native background, color, and blend mode settings. Subscribe To Our...

View Full Post
Divi 5.3 Release Notes

Divi 5.3 Release Notes

Posted on April 24, 2026 in Divi Resources

It’s official; the beta phases have ended, and Divi 5 has arrived! This isn’t the end; it’s a new beginning for Divi, and we are moving forward faster than ever with weekly updates. If you use Divi 5, you’ll see a version 5.3 update notification today. What’s New In...

View Full Post

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

Join To Download Today