Divi 5 makes this entire process possible without plugins or custom code. Thanks to native full-site editing, Canvases, and the Interaction Builder, you can wire up a fully functional off-canvas menu that works on every device — all from inside the builder. This guide covers the exact steps and settings that actually work.
Build the Header Section Basics
You can do all of this from anywhere in Divi 5 using full-site editing, but the Theme Builder keeps things focused on the header. Go to Divi → Theme Builder, open or create a Global Header, and enter the Visual Builder.
header. This improves semantic structure and accessibility without changing the visual design.Create the Off-Canvas Canvas
Do not set a z-index on the canvas itself. Z-index is handled at the section level inside the canvas.
Set Up the Off-Canvas Section
You're now inside your new canvas. Add a new section — this is the full-screen overlay container for your menu.
oc-menu-section). This gives you a reliable hook for any CSS targeting you need later.| Setting | Value |
|---|---|
| Width | 100% |
| Height | 100vh |
| Padding | Remove all padding from the section — padding belongs on the row |
| Background Color | Transparent (unless you want a full overlay color behind the menu panel) |
| Z-index | Set high enough to sit above the sticky header — 9999 is safe |
Configure the Off-Canvas Menu Row
The row inside the section is the actual visible panel — the colored drawer that slides in. This is where your menu lives.
| Setting | Value |
|---|---|
| Max Width | 380px desktop/tablet · 330px mobile |
| Background Color | Your menu panel color |
| Height | 100vh |
| Padding (top/bottom) | 7vh — gives content breathing room at all screen heights |
Design → Animation → Slide, direction Left, duration 400ms, opacity 80%, intensity 30%. This gives a smooth entrance. Adjust to suit your design — but note that Divi 5 currently animates the entrance only; the close snaps off without a reverse animation (a current Interaction limitation).
Wire the Close Trigger
Set the Interaction on the close icon
Select the close Icon module → Advanced → Interactions → Add Interaction → set to Click → Effect: Toggle Visibility → Target: Section (Off Canvas Menu) — or whatever name you gave it in Meta. This is why naming your section matters: the target dropdown shows the Admin Label, making it unambiguous.
Wire the Open Trigger on the Header
Both the hamburger and the close icon use the same Toggle Visibility effect targeting the same section. Divi 5 tracks the visibility state, so the hamburger always opens and the close icon always closes — even though they use the same effect type. No "Add" vs "Remove" distinction is needed.
Quick Reference — Key Settings
100% × 100vh380px desktop · 330px mobile100vh7vh top + bottom
