web_offcanvas_content Shortcode
The web_offcanvas_content shortcode defines the body of a web_offcanvas side panel. The parent decides its side, width, overlay, close control and the breakpoints where the body moves off canvas or remains inline.
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_offcanvas.
Usage
[web_offcanvas_content]
Content
[/web_offcanvas_content]
Attributes
| Attribute | Default | Accepted values | Purpose |
|---|---|---|---|
title |
— | Plain text | Names the section in the Page Builder interface; the frontend callback does not print it. |
device_visibility |
— | String unless stated otherwise | Shared builder visibility setting. Prefer the parent's breakpoint-specific inline/off-canvas controls for the panel's main responsive behavior. |
Enclosed content
The callback renders nested shortcodes directly, without creating a separate content wrapper. Keep it inside web_offcanvas so the parent can place the result in its panel and manage open and close interactions.
Verification
Test the parent at desktop, tablet and mobile widths. Confirm the body is inline where off-canvas behavior is disabled, moves into the correct side panel where enabled, and remains operable with the overlay and close control.