A Divi 5 popup on click needs no plugin. Divi 5 already has every part you need: Interactions to show and hide things, an entrance animation for the opening motion, and Canvases to keep the popup above the rest of the page. In this guide we build one from scratch: a button opens a white card that zooms in, and the X or a click on the dark background closes it again.

Want to skip the build? Download the sample layout (a free Divi 5 JSON file, 3 KB, zipped) and import it. It holds the button, the Popup canvas and every setting from this guide.
Why the popup goes in its own canvas
The version most people try first is a Group set to Position: Fixed, placed in the same section as the button. It opens, but on a site with a Theme Builder header and footer it does not end up on top. We tested this on Divi 5.19: the footer painted over the bottom of the card, and the header stayed bright above the dark overlay. Giving the Group and its section a z-index of 99999 changed nothing.
The reason is how Divi wraps the page. Your page content sits inside a container with a z-index of 1, and nothing inside that container can climb above the header and footer, whatever z-index you give it. A canvas gets around this. Divi renders a canvas in its own wrapper and gives that wrapper the canvas's Z Index setting, so a popup built there covers the whole screen.
Step 1: Add the button
Add a Button module where the popup should open from and leave its link empty, since the button only opens the popup. Give it an admin label such as "Open button". You will pick modules by name later on, and clear names save a lot of guessing.
Step 2: Create a canvas for the popup
At the top left of the Visual Builder there is a dropdown that says "Main Canvas". Open it, click Add Canvas and name the new canvas "Popup". The builder switches to the empty canvas, and the dropdown is how you move between it and your page.

Step 3: Give the canvas a high Z Index
Open the dropdown again, hover the Popup row and click its gear icon to open Canvas Settings. Set Z Index to 99999. This is the number that puts the popup above your header and footer.
Leave Append To Main Canvas on "Don't Append". You do not need it here: when the button on your page targets a module in this canvas, Divi adds the canvas to the page by itself.

Step 4: Build the popup wrapper
In the Popup canvas, add a section with a one-column row, and put a Group in the column. Name it "Popup": this Group is the whole popup, and it is what the button will show and hide.
- Advanced, Position: Fixed, offset origin top left, both offsets 0.
- Design, Sizing: width 100% and height 100%, so it fills the screen.
- Design, Layout: center its content in both directions, so the card lands in the middle.
- Design, Spacing: 16px of padding on every side, which keeps the card off the screen edges on a phone.

Step 5: Add the dark overlay and the card
Inside the Popup group you need two things. The first is a Group named "Dark overlay": Position Fixed, 100% width and height, and a black background at about 60% opacity. It dims the page and later closes the popup when someone clicks outside the card.
The second is a Group named "Popup card": a white background, 16px rounded corners, a width of 440px with a max width of 100%, and some padding. Set its Position to Relative with a z-index of 1, so it sits above the overlay. Then add your heading, a line of text and a button inside it.
For the close button, add a small round Group inside the card with an Icon module showing an X. Set the Group's Position to Absolute and place it in the top right corner.
Step 6: Make the card zoom in
Select the Popup card and open Design, Animation. Choose Zoom, keep the direction on Center, set Animation Duration to 400ms and Animation Speed Curve to Ease-Out. Leave Animation Repeat on Once: the zoom still plays every time the popup opens, not only the first time.

Speed The duration is the speed. Around 300ms feels snappy, 600ms feels slow and soft. Animate the card rather than the whole Popup group, so the dark overlay appears at once and only the card moves.
Step 7: Open the popup with the button
Switch back to Main Canvas, select your button and go to Advanced, Interactions. Click Add Interaction and set:
- Trigger Event: Click. Effect Action: Show Element. Target Module: your Popup group (it shows as "Group (Popup)", which is where the admin label pays off).
- Add a second one. Trigger Event: Load. Effect Action: Hide Element. Target Module: the same Popup group.
The second interaction hides the popup when the page loads, so visitors only see it after they click. Divi applies that hide before its scripts run, so the popup does not flash on screen first.

Step 8: Close it with the X and the overlay
Go back to the Popup canvas. Select the close button Group and add one interaction: Click, Hide Element, target the Popup group. Do exactly the same on the Dark overlay. Now a visitor can close the popup with the X or by clicking anywhere outside the card.

Step 9: Save and test it
Save the page and open it in a new tab. In the Visual Builder the popup always shows on its canvas so you can edit it; the hiding only happens on the live page. Check these five things:
- The popup is hidden when the page loads.
- The button opens it and the card zooms in.
- The X closes it, and so does a click on the dark area.
- Opening it a second time plays the zoom again.
- On a phone, the card fits the screen with a little space at the sides.
If something does not work
- The header or footer covers the popup. The popup is still on the main canvas, or the Popup canvas has no Z Index. Move the Popup group into its own canvas and set Z Index to 99999.
- The popup is visible as soon as the page loads. The Load, Hide Element interaction on the button is missing or targets a different module.
- The button does nothing. Open the button's interactions and check that the target is the Popup group itself, not the card or the overlay inside it.
Download and import the sample layout
Download the sample layout and unzip it. Inside is one file, divi-5-popup-on-click.json, exported with Divi 5's own Import & Export: the page with the button and the Popup canvas, Z Index included.
- Open a new or empty page in the Visual Builder.
- Click the gear icon at the top left and choose Import.
- Choose the JSON file. Replace Existing Content is ticked by default and replaces what is on the page, which is why an empty page is best. Leave Import To New Canvas unticked.
- Click Import Layout, then Save. The Popup canvas comes in with the page.
If the popup then shows inside the page instead of over it, Divi is still using CSS it saved for the old page. In Divi's Theme Options, open the performance settings, find Static CSS File Generation and click Clear, then reload the page. We had to do this once in our own test import.
Start from a ready design
If you would rather start from a finished design, browse our free Divi 5 popup layouts. Each one is built in a single section, so on a site with a Theme Builder header or footer, move its popup group into a canvas the way Steps 2 and 3 show. New to importing? Here is how to import a Divi 5 layout.
