# Modals Tab

> Aegis → Modals (admin.php?page=aegis-modals) lists Modal blocks on the site and creates draft pages from starters.

Feature flags (triggers, layouts, Pro behaviors) stay at **Aegis → Blocks → Modal**. This page does not duplicate those toggles.

## What You See

![Aegis → Modals listing the modals used on the site, with Name, Location, Trigger, Status, and Last Modified columns and the Add Modal button.](https://www.atmostfear-entertainment.com/wp-content/uploads/2026/11/modals.png)

*Aegis → Modals lists every modal on the site.*

The screen uses the shared Aegis admin layout:

- **Search modals** at the top left filters the list as you type (title, location, ID, shortcode, trigger).
- **Tools** at the top right has **Export** and **Import**. They download or load **every Aegis setting** as a `.json` file, the same as on the settings screens; they don’t export modals.
- **Add Modal** opens the starter chooser (see below).
- When no Modal trigger is on at **Aegis → Blocks → Modal**, a **Modal features are off** notice links there.
- With no modals yet, the screen shows **No modals yet** with its own **Add Modal** button.
- **Modals on this site** lists every `aegis/modal` block in posts, pages, templates, template parts, and synced patterns: **Name** and author, **Location** with click-to-copy **ID** and **Shortcode**, **Trigger**, **Status**, **Last Modified**, and at the end of the row a switch to enable or disable it, **Edit**, and **Delete**. Click **Name**, **Status**, or **Last Modified** to sort. On narrow screens the table scrolls sideways.
- Switching a modal on or off and **Delete** each show a notice at the top of the screen, green when it worked and red when it failed, including when the change fails.

Status **Disabled** (grey) means the modal’s switch is off (the modal is not rendered on the front end). **Trigger off** (amber) means the matching Blocks flag is disabled (for example an exit-intent modal while Exit Intent is off). Otherwise status is the host post status: **Published** in green, any other status (Draft, Pending, …) in amber.

**Location** shows the host title and type, then:

- **ID** — `modalId` (HTML `id` of the dialog). Click the row to copy.
- **Shortcode** — ``. Click to copy. Place it in any post, page, or shortcode-capable widget to render the same Modal (trigger + dialog) without publishing the host page.

Do not put the shortcode on the same host that already contains the Modal block — that duplicates the dialog `id`.

**Delete** removes that Modal block from the host. If the host is an otherwise empty draft page, the draft is moved to Trash. Enable/Disable does not change the host post status.

## Creating Modals

![The Add Modal dialog on Aegis → Modals with the starters Blank Modal, Contact, Newsletter, Video, and Cookie Consent.](https://www.atmostfear-entertainment.com/wp-content/uploads/2026/11/modal-starters.png)

*Create a modal from a starter.*

1. Open **Aegis → Modals**.
2. Click **Add Modal**, then pick **Blank Modal** or a pattern in the dialog. Aegis creates a **draft page** and opens the editor. **Blank Modal** turns on Button Trigger if it was off.
3. Edit the Modal block. Either publish the host page / move the block into a template, **or** leave the host as a draft and place `` elsewhere.
4. Enable extra triggers and layouts at **Aegis → Blocks → Modal** if you add them later. Creating a starter already turns on the extras that pattern needs (Animations for contact/video/newsletter/cookie, Off-Canvas for cookie consent, and Exit Intent / Time Delay / Show Once when Aegis Pro is licensed).

Newsletter (exit intent) and Cookie Consent (time delay) are Pro triggers; without Pro their cards carry a **Pro** label. The draft is still created without Pro; enable the matching flag after installing Pro.

The **Video** starter needs the Aegis Video add-on. Without it the card stays visible but greyed out, marked **Needs Aegis Video**, and cannot be picked.

## Choosing a Type, Trigger, and Animation

In the block editor, the Modal block’s **Modal Type**, **Trigger Type**, and **Animation** settings are pictures rather than drop-downs. Each option has a small diagram: a popup in the middle of the page, an off-canvas panel at the side, a bottom sheet, or a full-screen layout; a button, text link, icon, image, scroll position, exit intent, or timer for the trigger; and the fade, slide, or zoom for the animation. Only the types and triggers turned on at **Aegis → Blocks → Modal** are offered.

## Shortcode

```

```

The `id` is the Modal block’s `modalId`. The shortcode loads that block from its host (including drafts) and runs the same `render.php` output. Disabled modals and a disabled Modal block produce no front-end markup (admins see a short error). Recursive shortcodes for the same id are ignored.

## Scanning

Instances are cached for one hour and flushed when posts are saved, trashed, or deleted. The scan looks for `<!-- wp:aegis/modal` in post content (limit 500 matching posts).

## Next Steps

- [Modal Block](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/modal/) — Modal block details
- [Pro Modal Extensions](https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/)

---

Source: https://www.atmostfear-entertainment.com/docs/aegis/plugins/dash/modals/ · Updated 2026-11-25
