web_modal_content Shortcode
The web_modal_content shortcode supplies the body rendered inside a web_modal dialog. Its content is collected by the parent and displayed only when that modal opens.
The attributes below match the current Page Builder controls and public output. Use raw syntax only for reviewed content that cannot be maintained through the visual controls.
Allowed parent shortcodes: web_modal.
Usage
[web_modal_content]
Content
[/web_modal_content]
Attributes
| Attribute | Default | Accepted values | Purpose |
|---|---|---|---|
title |
— | Plain text | Names the section in the Page Builder interface; the frontend body does not print this value. |
device_visibility |
— | String unless stated otherwise | Applies the selected responsive visibility rule. |
Enclosed content
Nested shortcodes are rendered into the modal body. If responsive visibility is set, the callback wraps that rendered body in the corresponding visibility classes before the parent inserts it into the dialog.
Verification
Open the parent modal with each configured trigger and verify focus moves into the dialog, the complete body appears, and closing returns visitors to a sensible location. Check each selected visibility range because hiding the body does not remove the modal trigger.