THE PENDING DRAFT

mobble WordPress Plugin detects different mobile devices

August 12, 2013

Just stumbled upon this neat little plugin which promises to provide conditional functions which can be used to identify different devices easily.

Helper plugin that provides conditional functions for detecting a variety of mobile devices & tablets. Perfect accompaniment to CSS Media Queries.

I didn’t have the time to completely try it out right now, but it sounds very promising from the description. What it does is checking which device is in use using PHP class Mobile_Detect and provide us with conditional functions in the form of “is_mobile()” or “is_tablet()” etc. so we can display different stuff depending on the device.

As we already have the ability to generate, let’s say, different image sizes when uploading an image, this seems to be a very easy and logical solution. One concern that comes to my mind is if and how it will perform with caching. The developer – Scott Evans –  addresses this issue in the FAQs:

Please note that in certain setups caching will cause undesired behaviour. If your cache is set too aggressively PHP will be skipped and the device detection will not work.

Anyone using this plugin already? Do i miss something important? Better alternatives? Let us know what you think in the comments.

mobble – Download in the WordPress.org Plugin Directory

Release Post from Scott Evans with more Info and some Examples

Leave your comment