web_iframe Shortcode

The web_iframe shortcode renders the iframe component.

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.

Usage

[web_iframe]

Attributes

Attribute Default Accepted values Purpose
url String unless stated otherwise Controls the source url.
width 100% String unless stated otherwise Enter only number for pixels or percent unit for relative width (e.g. 100%).
height 800 String unless stated otherwise Enter only number for pixels or percent unit for relative height (e.g. 100%).
iframe_loading lazy lazy, eager, auto Explicit loading attributes bypass the theme lazy parser for this iframe. Lazy loading requires enabling Advanced > Lazy Load in the theme settings.
iframe_fetchpriority high, low, auto Use high only for above-the-fold iframes. High priority forces eager loading.
additional_attrs String unless stated otherwise Example: scrolling="no" marginheight="0" marginwidth="0" frameborder="0".
custom_class String unless stated otherwise Controls the additional css classes.
device_visibility String unless stated otherwise Applies the selected responsive visibility rule.
el_id Valid unique HTML ID Enter section ID (Note: make sure it is unique and valid according to w3c specification).

Verification

Limit web_iframe to trusted authors, review the supplied source carefully and confirm it does not block the rest of the page. Pay particular attention to url and width.