WordPress plugin that adds device-specific class names to the body tag
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
includes
class-devicebodyclass.php
devicebodyclass.php
index.php
readme.txt

readme.txt

=== Device Body Class ===
Contributors: bradvin
Tags: body class,mobile,responsive
Requires at least: 3.5.1
Tested up to: 3.5.2
Stable tag: 1.0.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Appends device-specific class names onto the body tag

== Description ==

Device-specific class names are appended to the body tag using the body_class filter.
Uses the [MobileDetect](https://github.com/serbanghita/Mobile-Detect) class under the hood.

The following class names are appended if appropriate:

*   tablet
*   mobile
*   desktop
*   iphone
*   ipad
*   android
*   blackberry
*   windows_mobile
*   samsung
*   kindle
*   lynx
*   gecko
*   opera
*   ns4
*   safari
*   chrome
*   ie

== Installation ==

1. Upload directory `device-specific-class` to the `/wp-content/plugins/` directory
1. Activate the plugin through the 'Plugins' menu in WordPress

== Changelog ==

= 1.0.0 =
* First release