Title: isMobile() Shortcode for WordPress
Author: Jairo Ochoa
Published: <strong>5 november 2018</strong>
Last modified: 3 september 2026

---

Sök tillägg

![](https://ps.w.org/ismobile/assets/banner-772x250.jpg?rev=2967982)

![](https://ps.w.org/ismobile/assets/icon-256x256.png?rev=1969189)

# isMobile() Shortcode for WordPress

 Av [Jairo Ochoa](https://profiles.wordpress.org/jairoochoa/)

[Ladda ner](https://downloads.wordpress.org/plugin/ismobile.2.0.0.zip)

 * [Detaljer](https://sv.wordpress.org/plugins/ismobile/#description)
 * [Recensioner](https://sv.wordpress.org/plugins/ismobile/#reviews)
 *  [Installation](https://sv.wordpress.org/plugins/ismobile/#installation)
 * [Utveckling](https://sv.wordpress.org/plugins/ismobile/#developers)

 [Support](https://wordpress.org/support/plugin/ismobile/)

## Beskrivning

This plugin works with the open source [Mobile Detect Library](http://mobiledetect.net).
You can get further information on its website.

    ```
    [ismobile device='iphone' debug=true ] Your content [/ismobile]
    ```

#### Parameters

 1. _device_: Filters the device where you want the content to be shown. It could be
    more than one device, simply separate them with comma.
 2. _debug_: Shows Mobile Detect Library installed version. Also shows two arrays. 
    The first one contains the devices which the library detects and the second one
    contains the devices where you want to show the content.

#### Values

 * _android_: Shows content in Android devices.
 * _chrome_: Shows content on Chrome browser (Only works on mobile devices).
 * _desktop_: Shows content on a computer. Opposite to mobile option.
 * _ios_: Shows content in iOS devices.
 * _ipad_: Shows content on a iPad.
 * _iphone_: Shows content on a iPhone.
 * _mobile_: Shows content on a mobile device (includes tablets and cell phones).
   Opposite to desktop option.
 * _phone_: Shows content on a cell phone.
 * _safari_: Shows content on Safari browser (Only works on mobile devices).
 * _samsung_: Shows content on Samsung devices.
 * _tablet_: Shows content on a tablet.

## Installation

This section describes how to install the plugin and get it working.

 1. Upload the entire plugin folder to the /wp-content/plugins/ directory.
 2. Activate the plugin through the “Plugins” menu in WordPress.
 3. Go to Plugins -> isMobile() to read plugin’s help page.

#### Minimum Requirements

 * PHP version 7.4 or greater

## Recensioner

![](https://secure.gravatar.com/avatar/bd32ec9cd108d4da374f25e02a072568ef20be167ffcc318d2ca620be1435ec0?
s=60&d=retro&r=g)

### 󠀁[Works great!](https://wordpress.org/support/topic/works-great-9695/)󠁿

 [apollosk](https://profiles.wordpress.org/apollosk/) 8 oktober 2025

Thank you for this useful plugin. Kudos to the developers!

![](https://secure.gravatar.com/avatar/c199b0f847ab4af840a1952c0ae7d4f6f73270b9fe5d9efc629baefc82e697d4?
s=60&d=retro&r=g)

### 󠀁[Super Sache!](https://wordpress.org/support/topic/super-sache-7/)󠁿

 [vegisto](https://profiles.wordpress.org/vegisto/) 27 januari 2025

Wunderbar.Auch das mit dem DEBUG ist sehr hilfreich.Das erspart mir jetzt die Konfiguration
über CSS. Danke dafür.

![](https://secure.gravatar.com/avatar/53711ab6a50a2cad6700b40f6a5206c12b6f5fae9ced752977a11692d3321e29?
s=60&d=retro&r=g)

### 󠀁[Fantastic](https://wordpress.org/support/topic/fantastic-2610/)󠁿

 [Josh Willett](https://profiles.wordpress.org/joshwillett/) 22 oktober 2020

Works a treat to show information based on android or ios. thank you.

 [ Läs alla 3 betyg ](https://wordpress.org/support/plugin/ismobile/reviews/)

## Bidragsgivare och utvecklare

”isMobile() Shortcode for WordPress” är programvara med öppen källkod. Följande 
personer har bidragit till detta tillägg.

Bidragande personer

 *   [ Jairo Ochoa ](https://profiles.wordpress.org/jairoochoa/)
 *   [ dixitalmedia ](https://profiles.wordpress.org/dixitalmedia/)

”isMobile() Shortcode for WordPress” har översatts till 4 språk. Tack till [översättarna](https://translate.wordpress.org/projects/wp-plugins/ismobile/contributors)
för deras bidrag.

[Översätt ”isMobile() Shortcode for WordPress” till ditt språk.](https://translate.wordpress.org/projects/wp-plugins/ismobile)

### Intresserad av programutveckling?

[Läs programkoden](https://plugins.trac.wordpress.org/browser/ismobile/), kika på
[SVN-filförvaret](https://plugins.svn.wordpress.org/ismobile/) eller prenumerera
på [utvecklarloggen](https://plugins.trac.wordpress.org/log/ismobile/) via [RSS](https://plugins.trac.wordpress.org/log/ismobile/?limit=100&mode=stop_on_copy&format=rss).

## Ändringslogg

#### 2.0.0

 * Mobile Detect Library updated to Version 3.74.4 (LTS branch, namespace `Detection\
   MobileDetect`), installed via Composer. This branch supports PHP 7.4 and up with
   no upper bound, so a single bundled version covers the plugin’s whole supported
   PHP range. The old single-file `libs/Mobile_Detect.php` (2.x, deprecated upstream)
   is no longer bundled.
 * Rebuilt Mobile Detect library loading as a compatibility layer that reuses a 
   library already loaded by the theme/another plugin if present, instead of hardcoding
   one specific class.
 * Fixed a bug where the library could be loaded twice (fatal ”Cannot redeclare 
   class”) under certain conditions.
 * Detection calls no longer fatal the site if the underlying library throws or 
   is missing a method; they safely fall back instead.
 * Added index.php files to every plugin folder to prevent directory listing.
 * Removed the manual load_plugin_textdomain() call (discouraged since WP 4.6; WordPress.
   org loads translations automatically for hosted plugins).
 * Replaced print_r() with implode() in the debug output, and unslashed/hardened
   the $_GET[’page’] read used to conditionally enqueue admin CSS.
 * Minimum PHP version: 7.4

#### 1.1.2

 * Updated last WordPress version tested
 * Security fixes

#### 1.1.1

 * Mobile Detect Library downgrade to Version 2.8.41

#### 1.1

 * Updated last WordPress version tested
 * Mobile Detect Library updated to Version 3.74.0
 * Minimum PHP version: 7.4

#### 1.0.3

 * Updated last WordPress version tested

#### 1.0.2

 * Mobile Detect Library updated to Version 2.8.39

#### 1.0.1

 * Mobile Detect Library updated to Version 2.8.34

#### 1.0

 * Initial Release

## Meta

 *  Version **2.0.0**
 *  Senast uppdaterat **1 månad sedan**
 *  Aktiva installationer **100+**
 *  WordPress-version ** 6.0 eller senare **
 *  Testat upp till **7.1.3**
 *  PHP-version ** 7.4 eller senare **
 *  Språk
 * [Basque](https://eu.wordpress.org/plugins/ismobile/), [English (US)](https://wordpress.org/plugins/ismobile/),
   [Galician](https://gl.wordpress.org/plugins/ismobile/), [Spanish (Chile)](https://cl.wordpress.org/plugins/ismobile/)
   och [Spanish (Spain)](https://es.wordpress.org/plugins/ismobile/).
 *  [Översätt till ditt språk](https://translate.wordpress.org/projects/wp-plugins/ismobile)
 * Etiketter
 * [desktop](https://sv.wordpress.org/plugins/tags/desktop/)[ipad](https://sv.wordpress.org/plugins/tags/ipad/)
   [iphone](https://sv.wordpress.org/plugins/tags/iphone/)[mobile](https://sv.wordpress.org/plugins/tags/mobile/)
   [tablet](https://sv.wordpress.org/plugins/tags/tablet/)
 *  [Avancerad vy](https://sv.wordpress.org/plugins/ismobile/advanced/)

## Betyg

 5 av 5 stjärnor.

 *  [  3 5-stjärniga recensioner     ](https://wordpress.org/support/plugin/ismobile/reviews/?filter=5)
 *  [  0 4-stjärniga recensioner     ](https://wordpress.org/support/plugin/ismobile/reviews/?filter=4)
 *  [  0 3-stjärniga recensioner     ](https://wordpress.org/support/plugin/ismobile/reviews/?filter=3)
 *  [  0 2-stjärniga recensioner     ](https://wordpress.org/support/plugin/ismobile/reviews/?filter=2)
 *  [  0 1-stjärniga recensioner     ](https://wordpress.org/support/plugin/ismobile/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/ismobile/reviews/#new-post)

[Visa alla recensioner](https://wordpress.org/support/plugin/ismobile/reviews/)

## Bidragande personer

 *   [ Jairo Ochoa ](https://profiles.wordpress.org/jairoochoa/)
 *   [ dixitalmedia ](https://profiles.wordpress.org/dixitalmedia/)

## Support

Har du något att säga? Behöver du hjälp?

 [Visa supportforum](https://wordpress.org/support/plugin/ismobile/)