Detect Device

Generating Link:

Since version 2.4, the plugin detects the device based on screen size. Using “screen. width” that runs at the client-side using Javascript, so that we can avoid the issues if the cache plugin is not detecting the devices.

(deprecated) However, now we can change this nature from plugin settings to “customize styles” settings.

Before 2.4, the plugin detected the device using an HTTP user agent because of some cache plugins that were not able to identify the devices.
We have changed the nature of detecting the devices for link generation.

Select Styles:

Styles selected on the server-side, the plugin detects the device based on WordPress function wp_is_mobile.

wp_is_mobile detects devices based on HTTP User Agent.


Note: If in your WordPress installation wp_is_mobile is not a function, then the plugin uses a custom function that detects the device using HTTP User Agent.