Kih is_mobile WordPress plugin | Code Stuff
Mobile and web design development (Android, iPhone, WordPress)
Google+TwitterLinkedinFacebook
Subscribe
HomeMobile Apps, WordPress Plugins & WebsitesKih is_mobile WordPress plugin

WordPress Plugins

Kih is_mobile WordPress plugin

Kih is_mobile is a WordPress plugin that enables you to check if a visitor of your WordPress blog is using a mobile device like for instance a Nokia, Sony Ericsson or Motorola mobile phone.

The plugin is extensible enough to allow the inclusion of other mobile devices. You can also turn off mobile device checking by enabling or disabling it in the plugin’s configuration screen.

How is it done

The Kih is_mobile plugin works by comparing the “user agent” string of the browser of your blog’s visitor. If any one of the strings you inputted in the “Mobile Browser Strings” parameter is found in the visitor’s user agent string then the is_mobile() function of the plugin returns TRUE. Otherwise it returns FALSE.

You can use the is_mobile() function in your WordPress theme to check if the visitor is a mobile user and perform actions based on the function’s return value (e.g. load a different stylesheet for mobile browsers, load an image with a different size for mobile devices …) The possibilities are limitless, just use your imagination.

Installing the plugin

The procedure for installing the plugin is the same as any WordPress plugin. Just unzip the file into the /wp-content/plugins/ directory. Then go to the WordPress Admin panel and click on “Plugins”. From the list of plugins look for the plugin named “Kih is_mobile”. Click on the “Activate” link to enable the plugin.

Once the plugin is enabled, go to “Settings / is_mobile()”. There are currently two options that you can configure.

The first option enables or disables the plugin. The other option is a comma separated list of strings that is tested to identify your blog’s visitor. You need to update the list to include the unique string that will identify the different mobile browsers that visit your site. Don’t worry about creating a complete list. You can always add them later.

Download

Version 2.0.2

Updated: May 11, 2011

Size: 0 bytes

Downloaded: 126 times

Download

Leave a Reply

  • Hi, I'm Gerry. Welcome to my blog and sites about mobile, technology, The Pinoy, #crazyidea, games, WordPress, Ubuntu, Mac, iOS, Android, Symbian... I started sites like Ortigas Online and iMakati which focuses on local community information. Read more about Gerry
    Status (Twitter, Linkedin, Facebook...)

    Just found out that the Android-based HTC Sensation XL phone is now in the Philippines for about Php 28,000.

  • Visit my other sites

    • Gerry

      My blog about the Philippines, mobile, technology, games, mac, linux...

    • Apps & Games

      Reviews, news of mobile apps & games for Android, iOS, Blackberry, Symbian...

    • Connected Phone

      The computer is the mobile phone. The always connected phone evolution.

    • Pinoy Me

      Pinoy businesses, enterprises, startups, professionals all over the world

    • Java Midlet

      Java mobile apps & games - news, reviews, tips, mobile phone & devices

  • PINOI Sites

    Are you interested in putting up your own PINOI-enabled local community site? Contact me

    • PINOI

      Enabling local communities on the Internet

    • Makati

      iMakati.com is a site that provides information about Makati City.

    • Ortigas

      Community site that provides information about the Ortigas Center.