web_script Shortcode

The web_script shortcode renders the script 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_script]

Attributes

Attribute Default Accepted values Purpose
script_position current current or the builder’s default/theme-managed position Prints a configured custom script at the block or requests its registered position.
script Configured script identifier, registered handle, or supported conditional-feature token Selects the script or frontend feature to request.

Output and safety

This element enqueues or prints script behavior and does not render an independently visible frontend component, so device visibility does not apply.

Use the builder selector rather than typing an arbitrary handle. With current, a matching configured script can be printed at the shortcode location. A conditional-feature token requests the corresponding POM frontend asset and returns no visible markup. A theme-managed registered handle is enqueued through WordPress.

Place the element once at the point or template responsible for the feature. Then verify the page source/network requests, absence of duplicate execution, consent requirements, dependency order, cache behavior, and pages where the feature is absent. Only trusted administrators should configure custom scripts.