Phase 13: Growing Interactive Off-Canvas Components (Popups & Extra)

by | May 27, 2026 | Etcetera | 0 comments

Every internet web site in any case needs UI that lives outside the internet web page’s not unusual content material subject material float: a pop-up, a sticky reminder, a slide-in panel, or a confirmation urged. In Divi 5, you’ll assemble the ones with Canvases.

A Canvas is a detached design workspace that exists alongside the primary internet web page canvas. It’s no longer a module dropped into the internet web page layout. As a substitute, it’ll come up with a separate workspace for off-canvas UI, pop-ups, menus, staging layouts, and other designs that should stay become independent from the primary internet web page while you assemble.

This part of the Mastery Course covers two Canvas builds for the coworking homepage. The principle is a small Fit Reminder perceive anchored to the bottom-left of the viewport and dismissible with an intensive icon. The second is a centered email correspondence opt-in pop-up that is hidden by the use of default, gated by the use of a cookie state of affairs, and caused when the client scrolls to a specific section.

Together, the ones two examples show the entire Canvas, Interactions, and Display Prerequisites workflow.

What Canvases Are

A Canvas is a detached workspace in Divi 5. The main Canvas holds the visible internet web page content material subject material. Additional Canvases give you separate places to build business layouts, hidden UI, off-canvas elements, pop-ups, menus, and design experiments.

When sought after, Canvas content material subject material may also be appended to the front-end internet web page or injected with a Canvas Portal. You’ll have the ability to however design inside a Canvas the use of familiar Divi elements, along with Sections, Rows, Columns, Groups, Modules, Presets, and Design Variables.

There are two number one Canvas types:

  • Global Canvas: Available across the internet web site and useful for reusable UI, corresponding to pop-ups, menus, notification bars, and peculiar site-wide elements.
  • Local Canvas: Tied to a specific internet web page or template and useful for one-off UI that simplest belongs in a specific context.

We’ll assemble each and every types in this instructional. The Fit Understand could be a space Canvas for the homepage. The email opt-in pop-up could be a Global Canvas, alternatively we’ll motive it from the homepage. If you want to have the an identical pop-up to appear somewhere else, you’ll add an similar motive interactions on other pages or templates.

How Canvas Visibility Works

3 choices art work together to make a Canvas behave like a pop-up, perceive, or slide-in panel.

  • Visibility settings: Hide an element by the use of default so it does not appear until an interaction finds it.
  • Interactions: Create event-based behavior. A motive, corresponding to Click on on, Load, or Viewport Enter, runs an have an effect on, corresponding to Show Phase, Hide Phase, Toggle Visibility, Add Cookie, or Remove Cookie, on a function part.
  • Display Prerequisites: Make a decision whether or not or no longer an element must render in line with conditions corresponding to particular person serve as, tool, date, or cookie values.

This combination means that you can design the part visually, quilt it by the use of default, disclose it on the correct 2nd, and optionally prevent it from appearing yet again after a buyer closes it.

See also  Introducing SendLayer – Dependable WordPress E-mail Deliverability Made Simple

Create a Canvas on a page in Divi 5

Fit Reminder Understand

The Fit Reminder is the easier of the two builds. It is a small card pinned to the bottom-left of the viewport. It includes a mild background, a depressing border, a heading, a short lived description, and an intensive icon.

This perceive turns out when the internet web page a lot and may also be dismissed for the existing internet web page view. Since we can not set a cookie for this one, it should smartly appear yet again on a longer term internet web page load.

Create The Local Canvas

Inside the Visual Builder, open the left sidebar and select Add Canvas. Don’t make this one a Global Canvas. Name it Fit Understand.

Set the Canvas to append underneath the primary internet web page content material subject material. Then, give it a z-index of 999 so it stacks above commonplace internet web page elements alternatively underneath the higher-priority pop-up we can assemble next.

Create a local Canvas for the Event Notice in Divi 5

Assemble The Section, Row, And Column

Open the new Canvas and add a Section. In the proper sidebar, set the Section’s Admin Label to Fit Understand. This label makes the section more uncomplicated to hunt out when rising interactions that focus on it.

Inside the Section’s Design tab, open Sizing. Set Max Width to min(250px, 40%). This CSS function caps the card at 250px on higher screens while allowing it to shrink on smaller screens.

Next, move to Advanced > Position. Set Position to Fixed and Offset Starting to bottom left.

Beneath Spacing, set Margin Bottom and the left/right kind margin values to 1rem. This helps to keep the eye transparent of the viewport edges. Then, set Padding Best and Padding Bottom to 0px for the reason that interior Column will handle the card padding.

Set the Section Row’s Width to 100%. Then, follow the Outlined – Dark Phase Preset to the Column.

Inside the Column’s Border risk staff, add the Outline Selection Group Preset if your setup uses that preset for the 1px dark border. Then, set the Row’s Background Color to the Background – Delicate Gray variable.

Finally, on the Column, set Vertical Hollow to 1rem so the modules inside stack with consistent spacing.

Add The Understand Content material subject material

All through the Column, add 3 modules in this order:

  • Icon module
  • Heading module
  • Text module

Use an intensive icon, corresponding to an X, throughout the Icon module. Set its Position to Absolute, Offset Starting to top right kind, and the best/bottom and left/right kind margin values to -0.5rem. Set Icon Width to 26px.

Absolute positioning keeps the close icon anchored to the card’s corner instead of the viewport.

Next, add a Heading module and follow the Subheading Phase Preset. Set the heading text to Reminder!.

Then, add a Text module and follow the Small Text Phase Preset. Set the body text to: Networking instance on Wednesday, August 16th, from 4 pm until 6 pm.

Twine The Close Interaction

Make a selection the Icon module. Open the Advanced tab and building up the Interactions risk staff. Click on on Add Interaction and configure it like this:

  • Reason: Click on on
  • Have an effect on: Hide Phase
  • Purpose: Canvas, Section — Fit Understand

Finally, return to the Section and set a background color with 0% opacity. This helps to keep the Section background transparent so it does not create visible sharp corners in the back of the rounded Row or Column styling while scrolling.

Save the Canvas and reload the doorway end. The attention must appear throughout the bottom-left corner and disappear when the close icon is clicked. On account of no cookie is able, the eye can reappear on a longer term internet web page load.

See also  The way to Upload Fb Like Reactions to Your WordPress Posts

E mail Make a selection-In Pop-Up

The email opt-in pop-up is additional involved. It is a centered modal with a headline, reassurance text, an intensive icon, and an email correspondence signup form. It’s hidden by the use of default, confirmed when a buyer reaches a chosen homepage section, and blocked from longer term views after the client closes it.

Create The Global Canvas

From the left sidebar, add each different Canvas and make it a Global Canvas. Name it Sign Up Pop-up Form.

Append it underneath the primary internet web page content material subject material. Set its z-index to 1000 so it sort of feels that above the Fit Understand if each and every are visible at the an identical time.

Create a Global Canvas for the email pop-up in Divi 5

Assemble The Pop-Up Section

Add a Section and set its Admin Label to Subscribe. That’s the identify the homepage interaction will function.

Inside the Section’s Design tab, follow the Outlined – Dark Selection Group Preset to the Border risk staff. This helps to keep the pop-up shell aligned with the rest of the design gadget. Then, set Background Color to Background – Delicate Gray.

Beneath Design > Sizing, set Width to 980px and Max Width to 80%. This offers the pop-up a generous desktop width while preventing it from exceeding the viewport on smaller screens.

Beneath Advanced > Position, set Position to Fixed and Offset Starting to center center.

Assemble The Row And Columns

Add a Row the use of a Flex container with Two Offset Columns, with 3/5 and 2/5 Column widths. Set the Row’s Construction Wrapping to Wrap. Then, copy the second Column to create a third Column.

Configure the three Columns with the ones desktop and tablet Column Classes:

  • Column 1: 3/5 on Desktop and Fullwidth on Tablet and smaller.
  • Column 2: 2/5 on Desktop and Fullwidth on Tablet and smaller.
  • Column 3: Fullwidth on Desktop and smaller.

Set each and every Horizontal Hollow and Vertical Hollow to the Spacing – Medium Design Variable.

Horizontal and Vertical Gap settings on the pop-up Row

Cap the Row’s Max Width with the Max Width – 900 Design Variable to stick the internal content material subject material readable throughout the wider pop-up shell.

Set the pop-up Row Max Width to 900px in Divi 5

Add The Pop-Up Modules

In Column 1, add a Heading module with the text Discounts, Giveaways, & Other Data. Apply the H4 Preset to size and elegance it.

In Column 2, add an Icon module the use of an intensive icon. Set Position to Fixed, set Offset Starting to top right kind, and set the best/bottom and left/right kind margin values to 1rem. Set Icon Width to 26px.

Underneath the icon in Column 2, add a Text module and follow the Small Text Phase Preset. Set the text to Max one email correspondence monthly. On desktop, you’ll align this newsletter to the proper. On Tablet and smaller breakpoints, switch it once more to the left so it reads naturally.

In Column 3, add an E mail Optin module and follow the Dark Phase Preset.

Inside the Content material subject material tab, set the E mail Provider dropdown on your supplier of variety. This assemble uses MailerLite, alternatively setup varies by the use of provider. Connect the account, then remove the default heading text and body reproduction throughout the module. For this pop-up, we’ll simplest include the email field.

Set The Cookie Display State of affairs

Make a selection the pop-up Section and move to Advanced > Display Prerequisites. Add a Cookie state of affairs and configure it like this:

  • Display Rule: Cookie Worth Does Not Identical
  • Cookie Name: hide-popup
  • Cookie Worth: true

This tells Divi to render the pop-up Section simplest when the hide-popup cookie does not similar true. After the client closes the pop-up and the cookie is written, the location no longer passes, so the pop-up gained’t render yet again until the cookie expires or is cleared.

See also  What Is a 0-Day Exploit? And Why Are They Unhealthy?

Twine The Close And Cookie Interactions

Make a selection the close Icon module in Column 2. Inside the Interactions risk staff, add two interactions to the an identical click on on motive.

  • Click on onHide Phase → Section Subscribe. This closes the pop-up immediately.
  • Click on onAdd Cookie. Set Cookie Name to hide-popup and Cookie Worth to true. If the interaction settings include a length field, set the length to the time period you want the pop-up to stay hidden.

Each and every interactions run from the an identical click on every so often. The principle gives the client a direct visual response by the use of ultimate the pop-up. The second writes the cookie that the Display State of affairs tests on longer term internet web page a lot.

Next, select all the pop-up Section. Transfer to Advanced > Visibility and hide the Section across the breakpoints where the pop-up must get began hidden. The homepage motive will disclose it when the client reaches the chosen section.

Twine The Homepage Reason

Save the Canvas, then return to the primary homepage Canvas. We simplest need one motive.

Open the Layers View from the left sidebar and select the section that incorporates Thrive in a better art work atmosphere. In that section’s Advanced tab, building up Interactions and add this interaction:

  • Reason: Viewport Enter
  • Have an effect on: Show Phase
  • Purpose: Canvas, Section — Subscribe

This displays the pop-up when the client scrolls that section into view. It moreover avoids showing the pop-up immediately on internet web page load, which is most often a far much less intrusive experience.

The Fit Understand can appear on internet web page load because of it’s small and situated out of one of the simplest ways. The email pop-up waits for a scroll-based motive because it takes over the center of the show. Each and every elements are closable with Icon interactions, and the email pop-up moreover uses a cookie state of affairs to stop repeat views after it’s dismissed.

Get began Building Canvases In Divi 5 This present day!

With the Fit Understand and email correspondence opt-in pop-up stressed out up, the coworking homepage now has interactive UI outside the usual internet web page float. The small perceive surfaces smartly timed information without taking at the show, while the pop-up turns out at a additional deliberate 2nd and stays hidden after dismissal.

The an identical Canvas, Interactions, and Display Prerequisites development can power other off-page UI: cookie banners, slide-ins, announcement bars, confirmation turns on, onboarding panels, and off-canvas menus.

Section 12 of the Divi 5 Mastery trail made the internet web site grasp up during breakpoints. This phase added behavior and interaction. In Section 14, we’ll switch into the Loop Builder, where dynamic posts, products, and custom designed query wisdom may also be turned into completely designed Divi layouts. That suggests the an identical design gadget you built all through the trail can render many items without duplicating the an identical modules by the use of hand.

The submit Phase 13: Growing Interactive Off-Canvas Components (Popups & Extra) appeared first on Sublime Subject matters Weblog.

WordPress Web Design

[ continue ]

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!