Device Targeting
The Device Targeting shortcode for WordPress can be used to display specific content to users based on device type used to access the web page, Operational System or web browser. Check below for example implementations and shortcode documentation:
Device Targeting Examples
Content displayed to Desktop PC / Laptop users
Device Targeting Shortcodes
Shortcode
[x3m-device type="desktop"] Content displayed to Desktop PC / Laptop users [/x3m-device]
[x3m-device type="smartphone"] Content displayed to Smartphone / Tablet users [/x3m-device]Device Targeting Documentation
Here are the shortcode option settings available for Device Targeting:
| Shortcode Settings | Details |
|---|---|
| type=”desktop” | used to set the targeting type for the custom content:
– device “desktop” used for targeting desktop PC / laptops or “smartphone” used for targeting smartphones / tablets |