Popup Documentation
Everything DP Popup can do, setting by setting.
How to add the module, what each style does, and a full reference of every setting in the Content and Design tabs.
Overview
Show an offer, a newsletter form or an announcement as a centred modal, a corner slide-in, a top bar, a bottom sheet, a full-screen takeover or a side drawer. Open it on load, on scroll, on exit intent, on a click or after inactivity.
DP Popup shows its content when the trigger you set in Open happens: on load (with a delay), at a scroll depth, on exit intent, when a link or button is clicked (Open From), or after a time without activity. Choose how often it shows, the days between showings, the pages it appears on, and whether logged-in visitors and phones see it.
The content can be built in (title, text, button and a dismiss link), a Divi Library layout or a canvas.
In the builder
Search for DP and choose DP Popup. It works the same in Divi 5 and Divi 4.
6 styles
Pick one in Content > Popup Style.
Single module
All the settings are on the module itself.
Adding it to a page
DP Popup is part of DiviPerfect Modules. Once the plugin is active, the module is in the builder's module list.
Add the module
In the Divi builder, click the + button to add a module, search for DP and choose DP Popup.
Add your content
Open the Content tab and fill in the module's own content settings. The module previews live in the builder as you type.
Pick a style
Choose a look in Content > Popup Style.
Fine-tune the design
Use the Design tab for sizes, colours and fonts, and Advanced for CSS classes, custom CSS and visibility, like any Divi module. Empty colour settings use the style's own colours.
Styles
Choose a style in Popup Style. See every style running live.
Centred Modal
A dialog in the middle of the screen over a dimmed backdrop.
Slide-in Corner
A card that slides in from a corner.
Top Bar
A bar across the top of the page.
Bottom Sheet
A panel that rises from the bottom.
Full-Screen Takeover
Covers the whole screen.
Side Drawer
A panel that slides in from the side.
Features
DP Popup opens a box over the page: a centred modal, a corner slide-in, a top bar, a bottom sheet, a full-screen takeover or a side drawer. Use it for offers, newsletter sign-ups, notices or any content you want to show at the right moment, opened on load, on scroll, on exit intent, after inactivity or from a link.
Six popup styles
Centred Modal, Slide-in Corner, Top Bar, Bottom Sheet, Full-Screen Takeover and Side Drawer. Slide-in Corner and Side Drawer can sit on the left or the right.
Built-in or any Divi content
Use the built-in image, title, text, button and dismiss link, or show a Divi Library layout. In Divi 5 you can also show a canvas built on the same page.
Five triggers
After the page loads, after scrolling down, when the visitor is about to leave, after a time without activity, or only from a link or button.
Open from any link
Open From takes an #anchor or a .class. Any link to that anchor, or any element with that class, opens the popup whatever the trigger.
Frequency rules
Show the popup every time, once per visit or once every few days. Opening it from a link or button always works.
Page and visitor rules
Limit the popup to certain paths, hide it from logged-in visitors and choose whether it shows on phones.
Backdrop and closing
Set the backdrop colour and blur, close on a backdrop click, show or hide the close button, and add a quiet dismiss link. The Escape key also closes it.
Close from your own content
In a Library layout or canvas, give any element the class dp-popup-close to make it close the popup.
Accessible dialog
Modal styles lock the page scroll and keep keyboard focus inside the popup while it is open. Reduced-motion settings are respected.
How to use it
Step-by-step guides for the things people most often want to do with DP Popup.
How to pick and switch the popup style
- Open the module and go to Content > Popup > Popup Style.
- Pick Centred Modal, Slide-in Corner, Top Bar, Bottom Sheet, Full-Screen Takeover or Side Drawer.
- For Slide-in Corner and Side Drawer, choose the side in Design > Popup & Backdrop > Side.
- Set the box width in Design > Popup & Backdrop > Width. The popup is never wider than the screen.
How to write the built-in content
- Set Content > Popup > Content to Built-in (title, text, button).
- Fill in the Title and Text.
- Add an Image if you want one. It sits above the text, or beside it in a wide Centred Modal.
- Type the Button Text and Button Link. Leave Button Text empty to hide the button.
- Type a Dismiss Link Text such as "No thanks" to add a quiet link that closes the popup. Leave it empty to hide it.
How to show a Divi Library layout or a canvas
- Save the content you want as a layout in Divi > Divi Library.
- Set Content > Popup > Content to A Divi Library layout and pick it in Library Layout.
- In Divi 5 you can instead pick A canvas on this page: add one from the canvas menu at the top left of the builder (Add Canvas), build it there, then pick it in Canvas. Do not append it to the main canvas.
- The builder shows a placeholder. Check the result on the live page.
- Give any button or element in the layout the class dp-popup-close to make it close the popup.
How to choose when the popup opens
- Go to Content > When It Opens > Open.
- After the page loads: set the Delay in seconds.
- After scrolling down: set the Scroll Depth as a percentage of the page.
- When the visitor is about to leave: works on computers. Phones use the scroll trigger instead, so set a Scroll Depth too.
- After a time without activity: set Time Without Activity in seconds.
- Only from a link or button: the popup opens only from the links set in Open From.
How to open the popup from a button or link
- Go to Content > When It Opens > Open From.
- Type an anchor such as #offer, or a class such as .open-offer.
- Link any button or text link to #offer, or add the class open-offer to an element in its Advanced > CSS ID & Classes.
- Give each popup on a page its own anchor or class.
- Set Open to Only from a link or button if the popup should never open on its own.
How to control who sees it and how often
- Go to Content > Who Sees It > Show and pick Every time, Once per visit or Once every few days.
- For Once every few days, set Days Between.
- To limit it to certain pages, type paths in Only On These Pages, for example /shop/, /pricing/ or /blog/* for a whole section.
- Turn on Hide From Logged-In Visitors if needed. You are logged in yourself, so test in a private window.
- Turn off Show On Phones to keep it off small screens.
How to show one popup on every page
- Open Divi > Theme Builder and edit the global footer.
- Add the DP Popup module there and set it up.
- Leave Only On These Pages empty to show it everywhere, or list paths to narrow it down.
How to change the colours and backdrop
- Go to Design > Popup & Backdrop and set Backdrop Color and Backdrop Blur. These do not show for Slide-in Corner and Top Bar, which have no backdrop.
- Turn Close On Backdrop Click and Show Close Button on or off.
- Set the box background in Design > Popup Box and the button colours in Design > Button.
- Without your own colours, the button follows the site's Primary/accent colour and the title and text follow Divi's Heading and Body text colours. Changing those Divi colours restyles every module, so use the Design-tab settings to change this popup only.
How to style the text and button
- Go to Design > Title to set the title font, size, colour and spacing.
- Go to Design > Text for the body text.
- Go to Design > Button for the button font, background, spacing, size, border and shadow.
- Go to Design > Dismiss Link and Design > Close Button for the smaller controls.
Tips
- Test the triggers and rules in a private window. Frequency rules remember earlier visits, and you may be logged in.
- Exit intent needs a mouse. On phones the scroll trigger is used instead.
- Give each popup its own Open From anchor or class when there are several on a page.
- Canvases are a Divi 5 feature. In Divi 4, Content offers the built-in content or a Divi Library layout.
- In Divi 4 the same settings are in the same groups. Element groups such as Popup Box and Button offer background colour, margin, padding, width, max width, min height, height, border and box shadow in the same Design-tab toggle.
Design Elements
The parts of DP Popup you can style in the Design tab, and the options each part has. In Divi 4 the same groups have Background Color, Margin, Padding, Width, Max Width, Min Height, Height, Border and Box Shadow in the same toggle. Empty colour settings use the style's own colours, and text and accent colours follow your Divi theme colours.
Popup Box
Design tab
The popup panel itself.
- Popup Box: Background; Margin and Padding; Width, Max Width, Min Height and Height; Border (width, style, colour, rounded corners); Box Shadow.
Tip: Add padding here when you show a Library layout, so its content does not touch the edges.
Image
Design tab
The built-in image.
- Image: Width, Max Width, Min Height and Height; Border (width, style, colour, rounded corners).
Tip: Set a max height so a tall image does not push the button below the fold.
Title
Design tab
The built-in title.
- Title: Font (family, weight, style, size, colour, line height, letter spacing, alignment, text shadow); Margin and Padding.
Tip: Keep the title short. Bottom margin controls the gap to the text.
Text
Design tab
The built-in text.
- Text: Font (family, weight, style, size, colour, line height, letter spacing, alignment, text shadow); Margin and Padding.
Tip: Use the same font as your body text so the popup feels part of the site.
Button
Design tab
The built-in button.
- Button: Font (family, weight, style, size, colour, line height, letter spacing, alignment, text shadow); Background; Margin and Padding; Width, Max Width, Min Height and Height; Border (width, style, colour, rounded corners); Box Shadow.
Tip: Make the button full width in Sizing on small popups such as the Slide-in Corner.
Dismiss Link
Design tab
The "No thanks" link.
- Dismiss Link: Font (family, weight, style, size, colour, line height, letter spacing, alignment, text shadow); Margin and Padding.
Tip: Keep it quieter than the button: a smaller size and a muted colour.
Close Button
Design tab
The close (X) button.
- Close Button: Background; Width, Max Width, Min Height and Height; Border (width, style, colour, rounded corners); Box Shadow.
Tip: Give it a background on photo or dark popups so it stays visible.
Popup & Backdrop
Design tab
The popup's position and size, and the backdrop behind it.
Options: Side, Width, Backdrop Color, Backdrop Blur, Close On Backdrop Click, Show Close Button
Tip: A little Backdrop Blur draws the eye to the popup without hiding the page completely.
Settings Reference
Every setting DP Popup adds, in the order you find it in the builder. Divi's standard Design options (fonts, spacing, borders, box shadow, filters, transforms, animation) and the Advanced tab work as they do on any Divi module.
Popup
Content tab
- Popup Style: Options: Centred Modal, Slide-in Corner, Top Bar, Bottom Sheet, Full-Screen Takeover, Side Drawer. Default: Centred Modal.
- Content: A Library layout or canvas can hold any Divi modules. Give any element in it the class dp-popup-close to make it close the popup. Options: Built-in (title, text, button), A Divi Library layout, A canvas on this page (Divi 5). Default: Built-in (title, text, button).
- Library Layout: Layouts saved in Divi > Divi Library. The builder shows a placeholder; the live page shows the layout. Pick one from the list.
- Canvas: Add one from the canvas menu at the top left of the builder (Add Canvas), build it there, then pick it here. Do not append it to the main canvas, so it only shows in the popup. Pick one from the list.
- Image: Optional. Sits above the text (beside it in a wide Centred Modal). Image.
- Image Alt Text: Text.
- Title: Text.
- Text: Text.
- Button Text: Empty hides the button. Text.
- Button Link: Text.
- Open Button Link In New Tab: On or off. Default: off.
- Dismiss Link Text: A quiet "No thanks" link that closes the popup. Empty hides it. Text.
When It Opens
Content tab
- Open: About to leave: the pointer heads for the browser bar (computers only; phones use the scroll trigger instead). Options: After the page loads, After scrolling down, When the visitor is about to leave, Only from a link or button, After a time without activity. Default: After the page loads.
- Delay: Range: 0 to 60 s. Default: 3s.
- Scroll Depth: How far down the page. Range: 5 to 100 %. Default: 50%.
- Time Without Activity: Range: 5 to 300 s. Default: 20s.
- Open From: Optional. Links to this #anchor (for example #offer, then link a button to #offer) or elements with this .class (for example .open-offer) open the popup, whatever the trigger above. Give each popup its own. Text.
Who Sees It
Content tab
- Show: Opening it from a link or button always works. Options: Every time, Once per visit, Once every few days. Default: Once per visit.
- Days Between: Range: 1 to 365. Default: 7.
- Only On These Pages: Paths separated by commas, for example /shop/, /pricing/ or /blog/* for a whole section. Empty shows it wherever the module is (put it in a Theme Builder footer to cover the whole site). Text.
- Hide From Logged-In Visitors: You are logged in yourself, so test in a private window. On or off. Default: off.
- Show On Phones: On or off. Default: on.
Popup & Backdrop
Design tab
- Side: Slide-in Corner and Side Drawer. Options: Right, Left. Default: Right.
- Width: Never wider than the screen. Range: 240 to 1400 px. Default: 520px.
- Backdrop Color: Color. Default: rgba(6,6,6,0.6).
- Backdrop Blur: Range: 0 to 30 px. Default: 4px.
- Close On Backdrop Click: On or off. Default: on.
- Show Close Button: On or off. Default: on.
Close Button
Design tab
- Close Icon Color: The × icon on the Close Button. Leave empty for near-black (white on the Top Bar style). Color.
Support
Something not working as expected, or a question this page does not answer? Get in touch and we will help you get Popup working on your site.

Frequently Asked Questions
Common questions about DP Popup.
How do I open it from a button?
Write an anchor such as #offer in Open From and link your button to #offer, or give the button a class such as open-offer and write .open-offer. That works whatever the trigger, and you can set Open to Only from a link or button.
Can I stop it showing on every page view?
Yes. Use Show and Days Between to limit how often a visitor sees it.
Can it show only on some pages?
Yes. List the paths in Only On These Pages, for example /shop/, /pricing/ or /blog/* for a whole section. Put the popup in a Theme Builder footer to cover the whole site.
Does it work with Divi 5 and Divi 4?
Yes. The module has the same settings and styles in both builders.
Can I use it more than once on a page?
Yes. Each copy of the module has its own settings.









