Pro blocks

Modal PopupPro

How to choose what opens the popup (button, image, icon, text, page load, or exit intent), add content inside the popup, set how often it appears, and style the trigger, popup, overlay, and close button.

This feature needs the Pro version of WPMozo Blocks and Addons.

On this page

See the Modal Popup block live on the demo site (opens in a new tab)

Adding the block#

  1. Click the “+” (Block Inserter) button.
  2. Search for “Modal Popup” and select it.
  3. Choose a Trigger Type in General → Configuration.
  4. Turn on Modal Body → Show Modal Body to edit the popup content in the editor, then add blocks inside it.

General tab#

Configuration#

Configuration settings
SettingDescription
Unique Modal IDAn ID for this popup. It must be unique if a page has several popups.
Trigger TypeElement opens the popup when the visitor clicks a trigger. On Page Load opens it automatically. Exit Intent opens it when the cursor moves toward the browser bar to leave.
Trigger Element Type(Element) The trigger: Button (Button Text), Image (Image and Alt Text), Icon, or Text.
Element CSS ID / Element CSS Class(Element) Lets any other element on the page open this popup. Add the same ID or class to a menu item, a core button, or a link.
Trigger Delay (ms)(On Page Load / Exit Intent) Wait time before the popup opens.
Re-render modal on reloading/revisiting the pageWhen on, the popup shows on every visit. When off, a visitor who closed it won’t see it again.
Close Modal On ESCVisitors can close the popup with the Esc key.
Modal Header settings
SettingDescription
Show HeaderShows the top bar of the popup.
Show Modal Title / Modal TitleTitle text in the header.
Show Close IconShows the × close icon.
Modal Body settings

Show Modal Body: shows the popup content area in the editor so you can add and edit its blocks.

Modal Footer settings

Show Footer: adds a bottom bar with a close button. Set its label in Close Button Text.

Scroll Settings#

Scroll Settings
SettingDescription
Disable Website ScrollLocks the page behind the popup while it is open.
Modal ScrollbarShow or Hide the scrollbar inside long popups.

Design tab#

Modal Sizing & Alignment settings
PanelWhat it controls
AlignmentPosition of the trigger element (left, center, right).
Trigger ButtonColors, typography, padding and margin, and Use Icon on Button.
Trigger IconIcon color and Icon Font Size (px).
Trigger TextText color and typography.
Modal Title TextHeading Level, alignment, color, and typography of the title.
Modal Body TextAlignment, color, and typography of body text.
Modal Close IconColor of the × icon.
Modal Close ButtonFooter button alignment, colors, typography, and spacing.
Modal Sizing & AlignmentModal Position (Center, Top Left/Right/Center, Bottom Left/Right/Center), Modal Width, and Modal Height.

Advanced tab#

See Common Advanced Settings.

Tips#

  • Open a popup from your header menu: add a CSS class (for example open-offer) to the menu item and enter the same class in Element CSS Class.
  • Use Exit Intent with a discount code to win back visitors who are leaving. Exit intent only works on desktop, where the mouse can leave the window.
  • Keep Re-render modal… off for page-load popups so returning visitors aren’t annoyed.

Was this article helpful?

Updated Nov 2, 2026