Responsive

Enable Mobile Detect to support responsive detection.

Notes

Moble Detect works directly in your PHP files. To use it in your PHP, refer to the official documentation. However you don’t have to include the Mobile_Detect.php file or define the class, just replace their $detect variable with $wpe_responsive.

Usage

<?php
    if ($wpe_responsive->isMobile()) {
        /* Code */
    }
?>

You can also use the detection as a shortcode instead.

Examples

[wpe_responsive] Mobile and tablet content. [/wpe_responsive]

[wpe_responsive not="tablet"] Mobile only content. [/wpe_responsive]

[wpe_responsive not="mobile"] Tablet only content. [/wpe_responsive]