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]
The shortcode can be used to display custom content to users based on device type, OS or web browser. Above example displays content based on device type: desktop/laptop or smartphone/tablet.

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
– OS “ios”, “android”, “windows”, “linux”, “macos” used for targeting Operational Systems
– browser “chrome”, “safari”, “firefox”, “edge” used for targeting web browsers