Overview

PropertyValue
Block nameaegis/modal
Registered byAegis companion plugin
RequiresAegis theme + Aegis plugin

The theme does not register this block. Enable it (or any Modal extra) at Aegis → Blocks → Modal. Site-wide instance management is at Aegis → Modals — see Modals Tab.

Feature Toggles

Enable extras at Aegis → Blocks → Modal. They are off on new installs. Existing sites keep previously implicit-on free extras (button, icon, text, image, off-canvas, fullscreen, animations).

Enabling any Modal extra also turns the parent block on (same prefix rule as other Blocks sections). There is no separate parent Modal toggle.

Free plugin

ToggleWhat it does
Button TriggerRender a button that opens the modal. Off: no button trigger.
Icon TriggerOpen from an inline SVG/HTML icon button.
Text TriggerOpen from a text-style control.
Image TriggerOpen from a selected image.
Off-Canvas ModesOff-canvas (side panel) and bottom-sheet layouts. Off: those types render as a centered popup.
Fullscreen ModeFull-viewport layout. Off: fullscreen blocks render as a popup.
AnimationsFade, slide, and zoom. Off: no enter animation.

Popup layout, close behavior, focus trap, and size controls stay available while the block is on. The dialog surface and close control follow the theme light/dark tokens (--wp--custom--body--background / --wp--custom--body--color) unless a custom overlay or background color is set. Legacy #ffffff / rgba(0,0,0,0.5) values are treated as unset so they do not freeze light mode.

Close Button Position

OptionWhere the control sits
Top right of screen (default)Overlay corner (position: fixed), same as Lightbox
On dialogTop-right of the panel for every layout, including popup and fullscreen

An icon trigger with no custom HTML uses a default SVG. An image trigger with no selected image falls back to the trigger text button.

Pro

ToggleWhat it does
Exit IntentExclusive trigger type and a stacking Pro toggle (open when the pointer leaves the top of the viewport).
Scroll DepthExclusive trigger type and a stacking Pro toggle (open after a scroll percentage).
Time DelayExclusive trigger type and a stacking Pro toggle (open after N seconds).
Auto CloseClose the dialog after a delay.
Show OnceRemember the visitor in localStorage for a number of days.
Device VisibilityLimit the modal to desktop, tablet, and/or mobile.

Existing Pro sites keep these extras enabled via a one-time migration (aegis_modal_pro_toggles_v1). New installs leave them off. They are not in the generic v3 legacy snapshot (same pattern as Map and Marquee Pro extras).

Pro inspector panels and stacking triggers follow these toggles. Exclusive Pro trigger types in the free inspector follow the same flags, including extra fields that used to live only in the Pro panels (exit-intent sensitivity/delay, scroll percentage and once-per-load).

Show Once uses the free showOnce attribute (set by the Newsletter and Cookie patterns) and the Pro showOnceEnabled toggle. The Pro inspector reads and writes both so turning the panel off actually disables remember-me for those patterns.

Usage

Build the modal’s content and choose how it opens. Click a picture to choose the type or trigger.

  1. Enable the Modal extras you need at Aegis → Blocks → Modal.
  2. Insert Modal (or start from Aegis → Modals).
  3. Choose a layout and trigger, then add inner blocks as the dialog body.
  4. Optional: place on another page to render the same instance (see Modals Tab).

Saved attributes are not deleted when an extra is turned off. Render falls back: disabled trigger types use the first enabled click trigger (or none), off-canvas/fullscreen become popup, animations become none, and Pro behaviors are omitted from the frontend data attributes. The editor Select controls show that same fallback without rewriting the saved block.

Rendering

A modal as visitors see it.

Patterns

Plugin patterns aegis/modal-video, aegis/modal-contact, aegis/modal-newsletter, and aegis/modal-cookie-consent live in patterns/modal/ and register from config/patterns.php only while the Modal block is enabled. The theme does not ship modal patterns — do not re-add drafts under themes/aegis/patterns/modal/.

Creating a starter from Aegis → Modals turns on the extras that pattern needs:

StarterAlways enablesAlso enables when Aegis Pro is licensed
Blank / Contact / VideoButton Trigger; Contact and Video also enable Animations—
NewsletterAnimationsExit Intent, Show Once
Cookie consentOff-Canvas Modes, AnimationsTime Delay, Show Once

Next Steps