Cross-Canvas Interactions in Divi 5: Popups, Sidebars and Mega Menus Without Custom Code
Divi 5's Canvases and Interactions let you build popups, off-canvas carts, slide-in panels and mobile menus inside the Visual Builder — no popup plugin, no JavaScript. Here's the model and five components to build.

Table of contents
Affiliate disclosure: techivilla.com may earn a commission if you buy Divi through links on this page, at no extra cost to you. We only recommend tools we would build with ourselves.
For years, adding a popup, an off-canvas cart, or a slide-in panel to a WordPress site meant a dedicated plugin or a chunk of custom JavaScript. Divi 5 changes that with two features working together: Canvases and Interactions. Used as a pair — what Elegant Themes calls Cross-Canvas Interactions — they let you build interactive overlays entirely inside the Visual Builder. This guide explains the model and walks through five real components you can build with it, no code required.
The two concepts you need: Canvas and Interaction
Per the Elegant Themes documentation, the model has just two moving parts.
A Canvas is a separate workspace within a Divi 5 page. Every page has a Main Canvas (the visible layout) plus optional detached Canvases where you build content that stays out of the main flow — modals, menus, panels, drawers. The detached Canvas is where your popup or sidebar actually lives, hidden until something reveals it.
An Interaction adds behaviour to an element through three components:
- Trigger — the event that starts it: click, hover, viewport entry/exit, page load, or breakpoint change.
- Effect — the action: show, hide, toggle visibility, apply a preset, change an attribute, set a cookie, or scroll.
- Target — what receives the effect: the current element, a parent/child, or — crucially — an element on another Canvas.
A Cross-Canvas Interaction is simply a trigger on one Canvas pointing at a target on another: a button on the Main Canvas shows a section that lives on a detached Canvas. That single idea replaces a surprising amount of popup-plugin functionality.
Why this matters: fewer plugins, less JS
Every popup plugin you add is more code to load, more to keep updated, and another vendor's idea of how things should look. Building overlays natively in Divi 5 means the markup, styling, and behaviour all live in one place, inherit your site's Design Variables and Presets, and ship without a third-party script. For sites where performance and maintainability matter, that is a real win.
Five components to build
1. Lead-magnet popup. Build the modal (heading, form, close icon) on a detached Canvas. Add an Interaction on a "Get the guide" button — Trigger: click; Effect: show; Target: the modal section on the detached Canvas. Add a second Interaction on the close icon to hide it. Want it to appear automatically? Use a page load trigger, and pair it with the set cookie effect so it doesn't nag returning visitors.
2. Off-canvas cart. A vertical panel (fixed position, full height) on a detached Canvas holds the cart summary. A cart icon in the header triggers "show"; a backdrop or close icon triggers "hide". The same pattern Elegant Themes demonstrates for feature modals applies directly to a slide-in cart.
3. Pricing / details panel. On a pricing page, a "View benefits" button reveals a detailed feature-breakdown panel — exactly the use case shown in the official walkthrough, where a button on the Main Canvas shows a feature modal stored on a detached Canvas, and a close icon hides it again.
4. Mobile menu. A full-viewport menu Canvas (height 100vh, fixed) holds vertical links and a close icon. A hamburger icon uses two Interactions: one hides the menu on page load, another shows it on click at tablet/mobile breakpoints. We cover the full responsive-menu build in a dedicated guide linked below.
5. Comparison drawer. A "Compare" button on a product or pricing grid slides in a drawer listing selected items. Same primitive — detached Canvas + show/hide Interactions — with a toggle effect so the same button opens and closes it.
A clean build pattern
Whatever you build, the steps rhyme:
- Create and label the target on a detached Canvas (give the section a clear label like "Lead Modal" — labels are how you find it in the target dropdown).
- Set the trigger on the control element (button, icon, or page load).
- Choose the effect (Show / Hide / Toggle).
- Pick the target from the dropdown — cross-Canvas elements appear there.
- Add the reverse Interaction (the close action) and test across breakpoints.
Gotchas worth knowing
- Always wire the close. A "show" with no matching "hide" traps users in the overlay.
- Respect mobile. Use breakpoint triggers so a desktop hover behaviour doesn't strand touch users.
- Don't auto-popup aggressively. Pair page-load popups with the cookie effect and a delay so you don't punish returning visitors — and mind that intrusive interstitials can hurt mobile SEO.
FAQ
Do Cross-Canvas Interactions replace popup plugins entirely?
For the common cases — lead-magnet popups, slide-in panels, off-canvas menus and carts — yes, they cover the ground without a third-party plugin or custom JS. Highly specialised popup logic might still warrant a dedicated tool.
What triggers can I use?
Per Elegant Themes: click, hover, viewport entry/exit, page load, and breakpoint change. Effects include show, hide, toggle, apply preset, change attribute, set cookie, and scroll.
Can a button on the main page control something hidden elsewhere?
Yes — that is the whole point of a Cross-Canvas Interaction. The target dropdown includes elements on detached Canvases, so a Main-Canvas button can show or hide a modal living on another Canvas.
Will overlays inherit my site styling?
Yes. Because they are built with normal Divi modules, they use your Design Variables and Presets, so overlays match the rest of the site automatically.
Bottom line
Canvases give you somewhere to hide overlay content; Interactions give you triggers and effects to reveal it; together they replace the popup-and-sidebar plugin layer with native, on-brand components. Learn the show/hide/toggle pattern once and popups, carts, panels, menus, and drawers are all variations on the same theme.
Sources and further reading
Sources
- Elegant Themes — How To Create Cross-Canvas Interactions in Divi 5 elegantthemes.com
- Elegant Themes — Creating a Responsive Menu in Divi 5 Using New Menu Features elegantthemes.com
- Elegant Themes — Divi 5 Visual Builder Help Center help.elegantthemes.com


