Divi 5’s new menu tools will let you construct navigation from smaller, extra versatile items as a substitute of depending on one all-in-one menu module.
That issues maximum on responsive websites. A desktop header, dropdown menu, and cellular overlay don’t all the time want the similar construction. With the Hyperlink module, Dropdown module, Menu Loops, Canvases, and Interactions, you’ll be able to construct each and every model of the menu in the best way that matches the display screen.
On this publish, we can construct a responsive Divi 5 menu from begin to end. The desktop model makes use of looped menu hyperlinks and non-compulsory dropdowns. The cellular model makes use of a separate Canvas that opens and closes with Interactions.
Divi 5’s New Menu Development Options
Responsive menus in Divi 5 are constructed from a suite of centered equipment. Every one handles a unique a part of the navigation workflow.
The Hyperlink module handles person menu pieces. The Dropdown module handles flyouts and mega-menu panels. Menu Loops stay hyperlinks attached to WordPress menus. Canvases grasp off-canvas cellular menus. Interactions keep an eye on how the ones hidden menus open and shut.
The Hyperlink Module
The Link module means that you can upload a unmarried customizable hyperlink any place to your structure. You’ll use it as a standalone navigation merchandise, attach it to dynamic content material, or pair it with a Menu Loop so one styled hyperlink repeats for each and every merchandise in a WordPress menu.
On this publish, we can use the Hyperlink module as the root for the desktop and cellular menu hyperlinks.
When a Hyperlink module is hooked up to a Menu question, Divi can pull within the present menu merchandise textual content and URL. That helps to keep the menu attached to Look > Menus, so long run menu adjustments don’t require rebuilding the header.
The Dropdown Module
The Dropdown module means that you can upload a submenu or mega-menu panel within a father or mother component.
Position it underneath a father or mother Hyperlink module, then make a choice whether or not it opens on hover or click on. The dropdown content material is versatile. You’ll upload a easy stack of hyperlinks, or construct a richer panel with rows, columns, pictures, textual content, icons, buttons, and different modules.
This will give you extra keep an eye on than an ordinary dropdown menu. You aren’t restricted to a simple checklist of hyperlinks.
Canvases
A Canvas is a indifferent workspace in Divi 5. You’ll construct content material on a Canvas the similar method you construct any place else in Divi, the use of sections, rows, columns, and modules. The variation is that the Canvas can keep break away the Primary Canvas whilst you paintings.
This makes Canvases helpful for cellular menus, off-canvas panels, popups, and mega menus. The header remains blank, whilst the menu structure will get its personal devoted workspace. You’ll arrange Canvases from the Canvas dropdown on the best of the Visible Builder. From there, you’ll be able to upload a Canvas, transfer between Canvases, open Canvas Grid View, replica a Canvas, export it, or delete it.
Interactions
Interactions keep an eye on habits in Divi 5. Each Interplay has 3 primary portions:
- Cause Tournament: What begins the Interplay, corresponding to a click on, hover, web page load, viewport match, or breakpoint trade.
- Impact Motion: What occurs after the cause fires, corresponding to appearing a component, hiding a component, toggling visibility, making use of a preset, or converting an characteristic.
- Goal Module: The component suffering from the motion.
For this menu, Interactions will take care of the cellular overlay. A hamburger icon will display the cellular menu Canvas, and an in depth icon within that Canvas will disguise it once more.
Breakpoint triggers additionally lend a hand right here. You’ll ensure mobile-specific habits runs solely at the display screen sizes the place that menu exists.
How To Create A Responsive Menu In Divi 5
Now let’s construct the menu. The workflow begins within the Theme Builder. We can create a world header, construct the desktop navigation, upload dropdowns when wanted, after which create a cellular menu on a separate Canvas.
Step 1: Open The Theme Builder
Move in your WordPress dashboard and open Divi > Theme Builder. To find the default website online template, click on Upload International Header, then make a choice Construct International Header. Divi opens the Visible Builder for the header template.
The usage of the Theme Builder helps to keep the navigation in a single reusable template. That method, the responsive menu can seem throughout your website as a substitute of being rebuilt web page via web page.
Divi 5 additionally means that you can paintings with editable template spaces without delay along web page content material. That may be helpful while you already constructed a part of a header or footer on a web page and need to transfer it right into a template.
Step 2: Construct The Header Construction
When the Visible Builder opens, Divi can display starter Flexbox templates. For this case, get started with a multi-row header construction. We used a two-row structure, then duplicated one row to create 3 stacked rows:
- Row 1: Announcement bar.
- Row 2: Emblem and call-to-action button.
- Row 3: Desktop menu hyperlinks.

This construct makes use of a targeted header genre. It really works smartly for minimum, editorial, portfolio, and boutique-style web sites. A left-aligned brand with navigation at the proper may be a excellent choice. The similar Divi 5 menu options paintings both method.
Open the header phase’s structure settings. Set the structure course to Column, then upload a 10px vertical hole between rows.

Subsequent, upload 10px of best and backside padding to the phase. This helps to keep the header compact with out feeling cramped.

If you need a quicker place to begin, you’ll be able to additionally use our loose 20 Flexbox header layouts pack.

Prior to including the header modules, set the phase background. On this instance, we used a gradient that strikes from a dismal impartial Design Variable to clear, with each colour stops set to 50%.

That blank colour smash is helping the center row really feel lifted from the remainder of the header.
Step 3: Upload The Announcement Bar
The primary row is an easy announcement bar. Use a single-column row. Set the column alignment and justification to heart, then upload a Textual content module. Stay the announcement brief. It must beef up the header, now not compete with the menu.

Use your emblem font and a colour variable out of your design gadget. A smaller font measurement in most cases works easiest right here. Set the highest padding to 1em. On this instance, the textual content line peak handles many of the decrease spacing, which helps to keep the announcement bar compact.

Step 4: Construct The Emblem And Button Row
The second one row holds the emblem and call-to-action button. Upload a nested row with 3 columns. Set the row and its columns to make use of a horizontal structure so the columns sit down aspect via aspect. Upload a 10px hole between columns, then align and justify the contents to heart.
On this instance, the primary column acts as visible spacing. The second one column holds the emblem. The 3rd column holds the CTA button. Upload a background colour to the father or mother column or row so the center header house stands aside from the encircling phase.
For the emblem, upload an Symbol module and hyperlink it to the homepage. A dynamic house URL works smartly as it helps to keep the emblem hyperlink attached in your website setup.

Within the 3rd column, upload a Button module. Use the Design tab to genre the button colour, font, border radius, and spacing. For this structure, we used a gentle button background with darkish textual content so it stands proud towards the darker header row.

Step 5: Upload The Desktop Menu Hyperlinks
The 3rd row is the place the desktop navigation lives. Open the row’s Design tab and set Format Route to Row. This helps to keep menu pieces aspect via aspect moderately than stacked vertically. Upload a 10px hole and a delicate field shadow to lend a hand the menu row really feel break away the remainder of the header.

Upload a Hyperlink module within the row. Taste the font, measurement, colour, hover state, and spacing to compare your header design. The textual content can stay brief till the menu loop is hooked up.
Permit The Menu Loop
Open the Hyperlink module’s Content material tab and allow Loop Element. Set Question Kind to Menu, then make a choice the WordPress menu you need to show.

Maximum navigation menus can use the default loop settings. Nonetheless, those choices are helpful when you want extra keep an eye on:
- Order Through: Controls how menu pieces are taken care of.
- Order: Controls ascending or descending order.
- Menu Pieces In line with Web page: Limits what number of menu pieces the loop renders.
- Menu Merchandise Offset: Skips a suite selection of menu pieces from the beginning.
For a easy desktop nav, depart the defaults in position.
Attach The Labels And Hyperlinks
After the loop begins working, you might even see the similar placeholder label repeated around the menu. That occurs since the textual content remains to be static. Open the Hyperlink module’s URL box and click on the dynamic content material icon. Select Loop Menu Hyperlink so each and every repeated hyperlink will get its proper vacation spot.
Then open the label or textual content box and make a choice Loop Menu Textual content. Now each and every repeated merchandise makes use of the proper menu label.

Any more, adjustments in Look > Menus can float into the header with out modifying each and every menu merchandise within the Visible Builder.
Non-compulsory: Upload Dropdowns To The Desktop Menu
A flat looped menu works smartly for easy navigation. For higher websites, it’s your decision some pieces to open dropdowns or mega-menu panels. The setup wishes a bit making plans.
Should you position the similar Dropdown module within one totally looped Hyperlink module, the dropdown can repeat throughout each and every merchandise. That turns out to be useful provided that each and every menu merchandise wishes the similar dropdown construction. For blended navigation, use separate segments. Stay easy pieces in menu loops, then upload static Hyperlink modules for the pieces that want customized dropdown content material.
Plan The Menu Construction
Get started via sketching the menu construction. For this case:
- Merchandise 1 is a looped menu hyperlink.
- Pieces 2 and three are static Hyperlink modules with Dropdown modules within.
- Pieces 4 and 5 go back to a looped menu phase.
This setup will give you some great benefits of a dynamic WordPress menu whilst nonetheless permitting customized dropdown panels for particular pieces. In WordPress, take away the deliberate dropdown pieces from the menu utilized by the loop, or create a separate WordPress menu that comprises solely the flat hyperlinks. This prevents the similar pieces from showing two times.
Cut up The Menu Loop Into Segments
Again within the builder, flip off the loop at the current Hyperlink module. Replica the Hyperlink module till you might have the selection of menu positions you want. For this five-item instance, you’ll use 4 Hyperlink modules:
- One looped Hyperlink module for the primary flat merchandise.
- Two static Hyperlink modules for dropdown pieces.
- One looped Hyperlink module for the rest flat pieces.

At the first Hyperlink module, allow the menu loop once more. Set Menu Pieces In line with Web page to 1 so it solely displays the primary flat merchandise.

Depart the second one and 3rd Hyperlink modules static. The ones will develop into dropdown triggers. Within the fourth Hyperlink module, allow the similar menu loop and use Menu Merchandise Offset to skip the pieces that experience already been displayed. Modify the offset and merchandise rely to compare your precise menu construction.

Another choice is to create two separate WordPress menus and assign each and every one to its personal looped Hyperlink module. That avoids offset math, however it does imply managing a couple of menu in WordPress.
Upload The Dropdown Module
Choose some of the static Hyperlink modules. Within the Content material tab, open the Parts house and click on Upload Part. Seek for Dropdown and upload the Dropdown module as a kid component.
The Dropdown module begins as an empty container. Upload easy hyperlinks for the standard submenu, or construct a richer mega-menu panel with rows, columns, pictures, headings, and buttons. Within the Content material tab, use the Background settings so as to add a colour, gradient, symbol, development, or video background.

Subsequent, open the Dropdown module’s Design tab and to find the Dropdown settings. Helpful choices come with:
- Dropdown Place: Select whether or not the dropdown floats over the web page or seems inline.
- Display Dropdown On: Select hover or click on habits.
- Dropdown Route: Select whether or not the panel opens above, underneath, left, or proper of the father or mother.
- Dropdown Alignment: Align the panel to the beginning, heart, or finish of the father or mother.
- Dropdown Offset: Set the distance between the father or mother and the dropdown panel.
For this desktop construct, we used Floating, Hover, Under, Heart, and a 15px offset.

Construct The Dropdown Content material
Throughout the Dropdown module, upload a three-column row. Position a picture on the best of each and every column and a brief heading underneath it. Modify the horizontal and vertical gaps within the row and column Format settings so the dropdown content material feels balanced.
In each and every column’s Design tab, upload a delicate border the use of a Design Variable. As soon as the primary card seems proper, replica it for the rest columns.

To make the complete column clickable, open the column settings. Within the Content material tab, upload the vacation spot to the Column Hyperlink URL box.

From there, genre the spacing, border radius, shadows, and hover states till the dropdown suits your header design.

Repeat the similar procedure for the second one static menu merchandise. At this level, the desktop menu has dynamic flat hyperlinks and customized dropdown panels.
Make The Menu Responsive With A Cellular Canvas
The desktop menu is entire, however a large dropdown structure can really feel cramped on capsules and telephones. For smaller displays, we can use a separate Canvas. This we could the cellular menu use a vertical structure, higher faucet objectives, click-based dropdowns, and a full-screen overlay with out forcing the desktop header to modify.
Step 1: Conceal Desktop-Handiest Header Parts On Smaller Displays
Prior to construction the cellular Canvas, disguise the desktop-only portions of the header on pill and cellular. On this instance, the primary and 3rd columns within the brand row are hidden on smaller displays. That leaves the emblem visual whilst putting off the desktop CTA and spacing column.
Move to Complex > Visibility for the weather you need to cover, then disable them on pill and cellular. Use your customized breakpoints in case your website wishes extra actual keep an eye on.

Step 2: Upload A Cellular Menu Canvas
Open the Canvas dropdown on the best of the Visible Builder and make a choice Upload Canvas.

Title the Canvas Cellular Menu. If this header shall be used around the website, allow Make International. If the menu solely belongs to at least one template, you’ll be able to stay it native.
Depart the Canvas indifferent so it remains out of the Primary Canvas whilst you construct. In case your Canvas settings come with a z-index box, give it a prime worth so the menu can seem above the header and web page content material when opened.

Click on Upload Canvas. Divi opens the brand new Canvas workspace.
Step 3: Set Up The Cellular Menu Segment
Throughout the Cellular Menu Canvas, upload or choose the principle Segment and Row. The Segment acts because the full-screen overlay. The Row and Column keep an eye on how the menu content material sits within that overlay.
Open the Segment’s Meta choice team and provides it a transparent Part Label, corresponding to Cellular Menu Segment. This label makes the Segment more uncomplicated to seek out later while you create Interactions.

Taste The Segment
Open the Segment’s Design tab. Within the Format settings, set Justify Content material to Heart.

Within the Sizing settings, set Top and Max Top to 100vh so the menu fills the viewport.

Upload a dismal background colour to the Segment. Use a Design Variable if you have already got a dismal impartial to your colour gadget.

Subsequent, open the Column settings within the Row. Within the Design tab, pass to Format and set:
- Format Route: Column
- Justify Content material: Heart
- Align Pieces: Heart
- Vertical Hole: 15px

This creates a targeted vertical stack for the cellular menu.
Step 4: Upload Cellular Menu Pieces
Upload Hyperlink modules to the cellular menu column. You’ll reuse the similar menu loop workflow from the desktop menu. Attach the URL box to Loop Menu Hyperlink and the label to Loop Menu Textual content.

The variation is within the structure. On cellular, the hyperlinks run vertically and will use higher spacing to lead them to more uncomplicated to faucet. Reproduction the CTA button from the desktop header if you need it to seem within the cellular menu too. Paste it underneath the menu hyperlinks, then take away any visibility environment that will disguise it on pill or cellular.
Step 5: Upload A Shut Button
The cellular overlay wishes a transparent method to shut. Upload an Icon module to the Canvas and make a choice an in depth or X icon. Taste the icon to distinction with the darkish background.
![]()
Set the icon measurement to round 24px, then upload sufficient padding so the faucet house feels at ease on contact units. The place imaginable, set the icon’s semantic component to button and upload a transparent out there label corresponding to Shut menu.
Open Complex > Place. Set the icon to Fastened, make a choice the Most sensible Proper starting place, and set each offsets to 20px. Set a prime z-index so the shut icon remains above the menu content material.
![]()
Step 6: Place The Cellular Menu As An Overlay
Prior to wiring up the Interactions, place the Cellular Menu Segment as an overlay. Open the Cellular Menu Segment settings and pass to Complex > Place.
Set Place to Fastened, make a choice the Most sensible Left starting place, and set the highest and left offsets to 0.

Then open Design > Sizing and set the Segment width to 100%. This is helping the menu duvet the viewport when it’s proven via an Interplay.
Step 7: Upload Dropdown Playing cards For Cellular
In case your cellular menu wishes dropdowns, upload Dropdown modules within the static Hyperlink modules simply as you probably did on desktop. On cellular, set Display Dropdown On to Click on. Touchscreens do not need dependable hover habits, so click on is the easier selection.
Within each and every dropdown, upload the similar content material construction from the desktop menu. Then open the row settings and set Format Route to Column.

This stacks the dropdown playing cards vertically. Set Align Pieces to Heart so each and every card helps to keep a constant width. For this case, each and every card makes use of a max width of 150px.

Set the Dropdown module and the interior row width to round 175px so the stacked playing cards align cleanly.

If the dropdown feels too tall on smaller displays, make those changes:
- Conceal ornamental pictures on cellular the use of Complex > Visibility.
- Scale back column padding to 8px or 10px.
- Decrease the heading font measurement on the cellular breakpoint.
- Stay dropdown labels brief so the menu remains simple to scan.
Step 8: Upload The Shut Interplay
The cellular menu is constructed. Now the open and shut controls want to goal it. Get started at the Cellular Menu Canvas. Choose the shut icon and open Complex > Interactions. Upload a brand new Interplay with those settings:
- Admin Label: Shut Cellular Menu
- Cause Tournament: Click on
- Impact Motion: Conceal Part
- Goal Module: Cellular Menu Segment

Now the shut icon can disguise the Cellular Menu Segment.
Step 9: Upload The Hamburger Cause
Transfer again to the Primary Canvas from the Canvas dropdown. Upload an Icon module subsequent to the emblem and make a choice a hamburger icon. Taste it to compare the header.

Use Complex > Visibility to cover the hamburger icon on desktop and display it on pill and cellular.

The place imaginable, set the hamburger icon’s semantic component to button and upload an out there label corresponding to Open menu.
Upload A Load Interplay To Stay The Menu Hidden
Choose the hamburger icon and open Complex > Interactions. Upload the primary Interplay:
- Admin Label: Conceal Cellular Menu On Load
- Cause Tournament: Web page Load
- Impact Motion: Conceal Part
- Goal Module: Cellular Menu Segment
![]()
This acts as a security step so the cellular menu begins hidden when the web page so much.
Upload The Click on Interplay To Open The Menu
At the similar hamburger icon, upload a 2nd Interplay:
- Admin Label: Open Cellular Menu
- Cause Tournament: Click on
- Impact Motion: Display Part
- Goal Module: Cellular Menu Segment
Use breakpoint settings so this Interplay applies solely on pill and cellular.
![]()
Now the hamburger icon opens the menu, the shut icon hides it, and the desktop header remains unaffected.
Responsive Menu Very best Practices
A responsive menu must do greater than are compatible the display screen. It must keep simple to replace, simple to faucet, and simple to know.
- Use WordPress menus for dynamic hyperlinks: Menu loops lend a hand your header keep in sync with Look > Menus.
- Stay desktop and cellular buildings separate when wanted: An in depth desktop dropdown might not be the most productive cellular revel in.
- Use click on habits on contact displays: Hover-based dropdowns are unreliable on telephones and capsules.
- Label vital objectives: Part Labels make Interactions more uncomplicated to configure and troubleshoot.
- Take a look at faucet objectives: Icons must be big enough to faucet with ease and feature enough padding round them.
- Use out there labels: Hamburger and shut icons must keep up a correspondence their goal to assistive generation.
- Take a look at each and every breakpoint: Take a look at desktop, pill, and make contact with layouts sooner than publishing.
A bit construction up entrance makes the menu more uncomplicated to take care of later.
Create Responsive Menus In Divi 5 As of late!
Navigation is among the first issues guests use on a website online. A excellent menu must keep transparent on desktop, adapt cleanly on smaller displays, and stay simple to replace because the website adjustments. Divi 5 will give you the items to construct that gadget visually. Use Hyperlink modules and Menu Loops for dynamic navigation. Use Dropdown modules for richer desktop menus. Use Canvases and Interactions for cellular overlays.
The result’s a responsive menu that works throughout display screen sizes with out customized code, further plugins, or duplicated guide updates.
The publish Creating A Responsive Menu In Divi 5 (Using New Menu Features) gave the impression first on Elegant Themes Blog.





0 Comments