web_share Shortcode
The web_share shortcode displays the sharing actions enabled for single content in the theme settings. The current page or author archive supplies the shared URL; the current title and featured image are used where a network supports them.
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_share]
Attributes
| Attribute | Default | Accepted values | Purpose |
|---|---|---|---|
device_visibility |
— | String unless stated otherwise | Applies the selected responsive visibility rule. |
el_id |
— | Valid unique HTML ID | Assigns an ID to the sharing wrapper. |
el_class |
— | Space-separated CSS class names | Adds classes to the sharing wrapper. |
Theme-controlled actions
The shortcode follows the site's sharing enablement, alignment, shape, colors, heading and per-network choices. Supported actions in the current renderer include Facebook, X/Twitter, LinkedIn, Pinterest, Menéame, WhatsApp, email and copy URL. Disabled actions are omitted, and the entire component remains empty when content sharing is disabled.
Verification
Open the component on a single item and an author archive. Test every enabled action, verify generated URLs describe the current content, and confirm the email and copy-URL interactions work with keyboard input. Also check the disabled state does not leave an empty heading or wrapper visible.