How To Create Cross-Canvas Interactions In Divi 5

by | Jun 21, 2026 | Etcetera | 0 comments

Canvases and Interactions are two of Divi 5‘s most dear equipment for development dynamic layouts with out customized code. Canvases stay off-page content material arranged in separate workspaces. Interactions keep watch over when that content material seems, adjustments, or responds to a customer.

Go-Canvas Interactions deliver the ones two options in combination. A cause in your Primary Canvas can display, conceal, or alternate a component that lives on any other Canvas. That permits you to construct cleaner pages, stay modals and panels out of the primary structure, and nonetheless attach the whole thing during the Visible Builder.

On this submit, we’ll provide an explanation for how Go-Canvas Interactions paintings and construct a realistic instance: a button at the Primary Canvas that opens a characteristic breakdown modal saved on a separate Canvas.

What Are Divi 5 Interactions?

Divi 5 Interactions allow you to upload habits to modules, rows, columns, and sections from the Complicated tab. Each and every Interplay has 3 primary portions:

  • Cause: The development that begins the Interplay, similar to a click on, hover, viewport input, viewport go out, web page load, or breakpoint alternate.
  • Impact: The motion Divi plays, similar to appearing a component, hiding a component, toggling visibility, making use of a preset, converting an characteristic, surroundings a cookie, scrolling to a component, or mirroring mouse motion.
  • Goal: The component that receives the impact, similar to the present component, a father or mother, a kid, any other module, a row, a column, a bit, or a component decided on through ID or elegance.

You’ll be able to additionally upload multiple Interplay to the similar component. As an example, one button click on can display a modal, observe a preset to any other module, and conceal a special component on the similar time.

For this educational, we will be able to use the most simple model of that device: one click on Interplay to turn a modal and any other click on Interplay to cover it.

What Are Divi 5 Canvases?

Each and every Divi 5 web page begins with a Primary Canvas. That is the principle structure guests see once they land at the web page.

Further Canvases are indifferent workspaces that also belong to the similar web page or template. They’re helpful for content material that are supposed to keep break away the primary structure whilst you construct, similar to popups, slide-in panels, off-canvas menus, transient staging layouts, and reusable design parts.

Canvases stay the Visible Builder cleaner as a result of your modal, menu, or panel does no longer have to sit down throughout the Primary Canvas whilst you design the remainder of the web page.

Indifferent Canvases may also be native or international. A neighborhood Canvas belongs to the present web page or template. An international Canvas may also be reused around the web site.

Canvases will also be hooked up to the web page in numerous tactics. You’ll be able to goal them with Interactions, append them to the entrance finish when wanted, or show them in a selected location with the Canvas Portal Module.

What The Canvas Portal Module Does

The Canvas Portal Module shows content material from a indifferent Canvas in a selected position to your structure.

Call to mind it as a window into any other Canvas. You construct the supply content material as soon as, then position it anywhere you want it with a Portal.

This comes in handy for reusable content material blocks, shared playing cards, mega menu content material, announcement panels, element playing cards, or any design that are supposed to be controlled from one supply however displayed in a couple of puts.

What Are Go-Canvas Interactions?

A Go-Canvas Interplay is an Interplay the place the cause and goal live to tell the tale other Canvases.

As an example, a button at the Primary Canvas can display a hidden part inside of a indifferent Canvas. A detailed icon inside of that indifferent Canvas can conceal the similar part once more. A button inside of one indifferent Canvas too can cause any other indifferent Canvas.

See also  12 Best Google Fonts for Websites (and Best Practices)

That’s the primary receive advantages: the cause remains the place the customer interacts, whilst the content material can reside in its personal arranged workspace.

Similar-Canvas Vs Go-Canvas Interactions

Workflow The place The Cause Lives The place The Goal Lives Very best For
Similar-Canvas Interplay The energetic Canvas The similar Canvas Easy toggles, accordions, small unearths, and section-level results.
Go-Canvas Interplay One Canvas, such because the Primary Canvas Any other Canvas, similar to a indifferent popup or menu Canvas Popups, slide-ins, off-canvas menus, modals, reusable panels, and layered reviews.
Canvas Portal Non-compulsory, relying at the structure A indifferent Canvas rendered thru a Portal module Reusable Canvas content material that should seem in a selected position within the structure.

Similar-Canvas Interactions are in most cases more practical. Go-Canvas Interactions are higher when you wish to have to stay complicated or conditional content material out of the Primary Canvas.

How To Construct A Go-Canvas Interplay In Divi 5

Let’s construct a realistic instance.

The Primary Canvas will comprise a content material card with a View Advantages button. A indifferent Canvas will comprise a characteristic breakdown modal. When the customer clicks the button, Divi will display the modal from the indifferent Canvas. When the customer clicks the shut icon, Divi will conceal it once more.

Step 1: Create A Canvas For The Modal

Open the Canvas dropdown within the Visible Builder.

Canvas dropdown in Divi 5

Click on Upload Canvas. Identify the brand new Canvas one thing transparent, similar to Characteristic Breakdown. For this situation, stay Make World off for the reason that modal is restricted to this web page. In the event you plan to reuse the similar modal throughout a couple of pages or templates, make it international as an alternative.

Add Canvas popup in Divi 5

Throughout the Canvas, open the Phase settings and upload a semi-transparent background colour. This creates the overlay at the back of the modal panel. Then open the Meta choice workforce and set the Part Label to Options Modal. A transparent label makes the objective more uncomplicated to seek out later while you create the Interplay.

Element Label added to a modal section in Divi 5

Step 2: Measurement And Place The Modal Overlay

Open the Phase’s Design > Sizing settings. Set Width and Max Width to 100%. Then set Peak to 100vh. This makes the overlay span the entire viewport.

Full viewport sizing for a Divi 5 modal section

Subsequent, open Design > Spacing and set the end and backside padding to 0.

Remove section padding for a full-screen modal overlay in Divi 5

In Design > Structure, set the structure course to Row. Align the content material to the beginning so the panel can sit down alongside one facet of the overlay.

Layout settings for a Divi 5 modal overlay section

Now cross to Complicated > Place. Set the Phase to Fastened, make a selection the left beginning level, and set a prime Z Index so the modal seems above the web page content material.

Fixed position settings for a Divi 5 modal overlay

Step 3: Taste The Modal Panel

The Row throughout the overlay turns into the modal panel. Set the Row width to 350px and the peak to 100vh. This creates a slim slide-in taste panel that remains complete peak with out overflowing smaller monitors.

Width and height settings for a modal panel row in Divi 5

Open the Row’s structure settings. Set the structure course to Column, justify the content material to the middle, and align the content material to the left.

Column layout settings for a Divi 5 modal panel

Upload a forged background colour to the Row. Use a price out of your Design Variables so the panel fits the remainder of the web page.

Background color applied to a modal panel row in Divi 5

Step 4: Upload The Characteristic Breakdown Content material

With the panel construction in position, upload the content material guests want. On this instance, the modal contains a picture, name, quick intro, and a nested row of Blurb modules with icons. Every Blurb explains one vital characteristic or element.

Feature breakdown content added to a Divi 5 Canvas

Stay the replica scannable. A modal will have to solution the customer’s query temporarily, no longer change into a complete touchdown web page inside of a panel. Use the similar fonts, colours, and spacing values as the remainder of the web page. Design Variables are helpful right here as a result of they maintain the indifferent Canvas hooked up for your sitewide design device.

Step 5: Upload A Shut Button

The modal wishes a transparent shut keep watch over. Upload an Icon module close to the end of the panel and make a selection an in depth or X icon. Position it the place guests look forward to finding it, in most cases the top-right nook of the modal panel.

Close icon added to a Divi 5 modal panel

Set the icon measurement to 24px, then make a selection a colour out of your Design Variables. To put it exactly, open Complicated > Place. Set the Icon module to Absolute, make a selection the top-right beginning level, and regulate the offsets till the icon sits cleanly throughout the panel.

Step 6: Disguise The Modal Ahead of Release

Ahead of including the open Interplay, make sure that the modal does no longer seem through default. Make a choice the primary modal Phase and conceal it the usage of your most well-liked Divi workflow. On this instance, the Phase is hidden throughout all units from the Complicated > Visibility settings.

See also  Mullenweg – WordPress Safety: What Mullenweg In Pennsylvania Teaches Us…

Hide the modal section before launching it with an Interaction

The vital section is that the modal begins hidden and looks solely when the Interplay fires.

Step 7: Create The Shut Interplay

Get started with the shut icon throughout the Characteristic Breakdown Canvas. Make a choice the Icon module, open the Complicated tab, and make bigger Interactions. Click on Upload Interplay. Use those settings:

  • Admin Label: Shut Modal
  • Cause Match: Click on
  • Impact Motion: Disguise Part
  • Goal Module: Options Modal

Close Interaction added to a modal icon in Divi 5

Now the shut icon can conceal the modal Phase when clicked.

Step 8: Create The Open Interplay From The Primary Canvas

Transfer again to the Primary Canvas the usage of the Canvas dropdown. Make a choice the View Advantages button at the content material card. If the Button module has a URL box, set it to # so the clicking can act as an Interplay cause with out sending the customer to any other web page.

Open Complicated > Interactions and upload a brand new Interplay. Use those settings:

  • Admin Label: Open Characteristic Breakdown
  • Cause Match: Click on
  • Impact Motion: Display Part
  • Goal Module: Options Modal

The Goal Module dropdown is the place the Go-Canvas connection occurs. Divi can listing targetable components from different Canvases, so the button at the Primary Canvas can goal the modal Phase at the Characteristic Breakdown Canvas.

Select a Cross-Canvas target for a Divi 5 Interaction

For a smoother really feel, upload a brief lengthen similar to 150ms. This assists in keeping the modal from feeling abrupt with out making the web page really feel sluggish.

Now the Primary Canvas button opens a modal that lives on a indifferent Canvas.

Use Canvas Portals For Shared Go-Canvas Content material

The characteristic breakdown modal works by itself. However you may additionally have reusable content material that are supposed to seem inside of multiple structure.

On this instance, a mentor card makes a just right reusable part. It features a photograph, title, name, and quick credential line. The similar card may seem throughout the characteristic modal, on a path element web page, in an About part, or inside of a sidebar.

As an alternative of rebuilding that card in every position, create a separate Canvas for it.

Step 1: Create A Mentor Card Canvas

Upload a brand new Canvas and title it Mentor Card. Construct the cardboard inside of that Canvas.

Mentor Card Canvas created in Divi 5

If the cardboard will have to be reused around the web site, make this Canvas international.

Step 2: Upload The Card With A Canvas Portal

Go back to the Characteristic Breakdown Canvas and upload a Canvas Portal module the place the mentor card will have to seem.

Within the Canvas Portal settings, make a selection Mentor Card from the Canvas dropdown.

Canvas Portal module displaying a Mentor Card Canvas in Divi 5

The Portal shows the Mentor Card content material from its supply Canvas. In the event you replace the mentor photograph, name, or credential within the supply Canvas later, the puts exhibiting that Canvas thru a Portal can replicate the replace.

Make Global toggle for a reusable Mentor Card Canvas in Divi 5

Use this development for reusable design blocks that want to seem in a couple of puts however will have to be edited from one supply.

Upload Any other Go-Canvas Layer

Go-Canvas Interactions aren’t restricted to 1 modal.

You’ll be able to create layered reviews the place every Canvas handles one objective. A characteristic modal can display supporting main points. A mentor card can display the teacher. A separate mentor information modal can display the entire bio solely when a customer asks for extra.

That assists in keeping the web page targeted whilst nonetheless making deeper knowledge to be had.

Step 1: Create The Mentor Data Canvas

Reproduction the Characteristic Breakdown Canvas so the site, sizing, and overlay styling come along side it.

Duplicate a Canvas in Divi 5

Replace the content material with the mentor’s prolonged profile, then alternate the modal Phase label to Mentor Data.

Mentor Info modal created on a separate Canvas in Divi 5

If the duplicated shut button nonetheless objectives the unique modal, replace its Interplay so the objective is the Mentor Data Phase.

Step 2: Cause Mentor Data From The Mentor Card

Throughout the Mentor Card Canvas, choose the Be informed Extra About The Mentor button. Upload a brand new Interplay:

  • Cause Match: Click on
  • Impact Motion: Display Part
  • Goal Module: Mentor Data

Now the customer can open the characteristic modal, see the mentor card, after which open a deeper mentor information modal with out leaving the web page.

The hot button is group. Every Canvas has one activity, and every Interplay issues to the fitting categorised goal.

Scale The Trend Throughout More than one Content material Playing cards

An actual web page would possibly come with a number of playing cards or sections that want their very own supporting main points. Every card can open its personal characteristic breakdown with out making the Primary Canvas more difficult to regulate.

Reproduction the Characteristic Breakdown Canvas for every merchandise. Use transparent names similar to:

  • Characteristic Breakdown: Route
  • Characteristic Breakdown: Carrier
  • Characteristic Breakdown: Useful resource

Replace the content material inside of every Canvas so it fits the right kind card or part.

See also  Wix vs Weebly: Which is Higher for Trade Homeowners in 2024?

Then replace every button at the Primary Canvas. The Interplay setup remains the similar, however the Goal Module adjustments. Every button will have to level to the modal Phase for its personal content material.

Additionally test every shut icon after duplicating Canvases. Duplicated Interactions would possibly nonetheless level to the unique modal goal, so replace every shut Interplay sooner than checking out.

This makes the device repeatable. Each and every card can open the right kind modal, whilst the Primary Canvas remains blank.

Extra Tactics To Use Go-Canvas Interactions

The characteristic modal instance is just one use case. The similar development works any place you wish to have a blank primary structure with dynamic content material saved in other places.

Cellular Navigation Menus

Construct the header at the Primary Canvas or within the Theme Builder. Then construct the cellular menu in a indifferent Canvas.

Use a click on Interplay at the hamburger icon to turn the menu Phase. Upload an in depth icon throughout the Canvas with a click on Interplay that hides the similar Phase.

This assists in keeping the header structure easy whilst the entire navigation menu lives in its personal workspace.

Off-Canvas Aspect Panels

A button at the Primary Canvas can open a sidebar panel saved in a indifferent Canvas. Use this for provider main points, lead magnets, filters, path outlines, cart reminders, or reinforce activates.

Click on is in most cases the most secure cause for vital panels. Hover can paintings for desktop-only reviews, however it’s much less dependable on contact units.

Scroll-Induced Context Panels

A bit at the Primary Canvas can use a viewport cause to turn a component on any other Canvas.

As an example, when a customer reaches a Services and products part, a floating touch panel or reinforce sidebar can seem from a indifferent Canvas.

Use this in moderation. Scroll-triggered panels will have to reinforce the web page, no longer interrupt the studying revel in.

Go-Canvas Preset Switching

Interactions too can observe, take away, or toggle presets. That suggests a keep watch over at the Primary Canvas can alternate the manner of a component on any other Canvas.

As an example, a toggle button may just transfer a promotional banner Canvas between mild and darkish kinds, or alternate a panel from a normal be offering to a limited-time be offering.

Use transparent labels and check the interplay chain so the fitting Canvas component receives the fitting preset.

Very best Practices For Go-Canvas Interactions

Go-Canvas Interactions are robust, however they’re more uncomplicated to regulate while you stay the device arranged.

  • Use transparent Canvas names: Names like Characteristic Breakdown: Route are more uncomplicated to focus on than names like Canvas 2.
  • Label goal sections: Upload Part Labels similar to Options Modal or Mentor Data so they’re simple to seek out within the Goal Module dropdown.
  • Stay one objective in step with Canvas: Separate menus, modals, playing cards, and profile panels into their very own workspaces when conceivable.
  • Replace duplicated Interactions: After duplicating a Canvas, verify that open and shut buttons goal the duplicated part, no longer the unique.
  • Set right kind stacking: Use mounted positioning and a prime z-index for overlays that are supposed to seem above the web page.
  • Take a look at on cellular: Modals and facet panels want sufficient width, readable content material, and tap-friendly shut buttons.
  • Use international Canvases for reusable components: Use native Canvases for page-specific content material and international Canvases for shared content material.
  • Steer clear of pointless layers: If a easy same-Canvas toggle does the activity, use that. Go-Canvas setups are highest for content material that advantages from being separated.

The cleaner your naming and construction, the simpler the Interplay setup turns into.

Take a look at Developing Go-Canvas Interactions In Divi 5 As of late!

Go-Canvas Interactions in Divi 5 let your Primary Canvas keep targeted whilst dynamic content material lives in arranged indifferent workspaces.

That comes in handy for modals, slide-ins, full-screen menus, reusable playing cards, context panels, and multi-step content material unearths. The customer will get a easy revel in, and the builder remains more uncomplicated to regulate.

Use Canvases to split the content material. Use Interactions to attach the habits. Use Canvas Portals when indifferent content material wishes to seem in a selected position. In combination, those equipment come up with a cleaner technique to construct complicated Divi 5 layouts with out customized code.

The submit How To Create Cross-Canvas Interactions In Divi 5 seemed first on Elegant Themes Blog.

WordPress Maintenance Plans | WordPress Hosting

read more

0 Comments

Submit a Comment

DON'T LET YOUR WEBSITE GET DESTROYED BY HACKERS!

Get your FREE copy of our Cyber Security for WordPress® whitepaper.

You'll also get exclusive access to discounts that are only found at the bottom of our WP CyberSec whitepaper.

You have Successfully Subscribed!