Title: Super Browser Detector
Author: WP Academic
Published: <strong>October 16, 2016</strong>
Last modified: March 26, 2020

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/user-agent-body-class.svg)

# Super Browser Detector

 By [WP Academic](https://profiles.wordpress.org/eastsidecode/)

[Download](https://downloads.wordpress.org/plugin/user-agent-body-class.zip)

 * [Details](https://sa.wordpress.org/plugins/user-agent-body-class/#description)
 * [Reviews](https://sa.wordpress.org/plugins/user-agent-body-class/#reviews)
 *  [Installation](https://sa.wordpress.org/plugins/user-agent-body-class/#installation)
 * [Development](https://sa.wordpress.org/plugins/user-agent-body-class/#developers)

 [Support](https://wordpress.org/support/plugin/user-agent-body-class/)

## Description

Super Browser Detector adds PHP user agent information to the body class to help
target specific devices, browsers, and operating systems with CSS.

Major features in User Agent Body Class include:

 * Adds user browser and operating system information as a string to the body class.

## Installation

Upload Super Browser Detector folder to your blog, then Activate it.

## Reviews

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

### 󠀁[Great for PHP, not for cacheing](https://wordpress.org/support/topic/great-for-php-not-for-cacheing/)󠁿

 [samuelcrowe13](https://profiles.wordpress.org/samuelcrowe13/) April 25, 2019

This plugin is great as it provides the PHP command lines for identifying browsers
and using if commands. It’s not a great plugin for cacheing when using plugins such
as W3 Total Cache, especially with memcache, as it stores .browser-gecko and .os-
linux on the server. It’s better used as inline-PHP standalone commands: $userAgent
= $_SERVER[‘HTTP_USER_AGENT’]; if($is_safari) { echo ‘safari item’; } elseif($is_chrome){
echo ‘chrome item’; } It’s super helpful for providing these tags however, especially
since these lines of code will transcend version updates for the foreseeable future,
and it will work fantastic with a non-cacheing website.

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

### 󠀁[Great Solution for Targeted CSS](https://wordpress.org/support/topic/great-solution-for-css/)󠁿

 [Dru K](https://profiles.wordpress.org/dsgncr8or/) February 26, 2018

A great solution for targeting specific browser types and software… and appreciate
the simple code.

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

### 󠀁[Does what I needed](https://wordpress.org/support/topic/does-what-i-needed-10/)󠁿

 [dbrown12](https://profiles.wordpress.org/dbrown12/) October 17, 2016

Does exactly what it says. Super helpful for writing browser-specific CSS.

 [ Read all 3 reviews ](https://wordpress.org/support/plugin/user-agent-body-class/reviews/)

## Contributors & Developers

“Super Browser Detector” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ WP Academic ](https://profiles.wordpress.org/eastsidecode/)
 *   [ Louis ](https://profiles.wordpress.org/louis/)

[Translate “Super Browser Detector” into your language.](https://translate.wordpress.org/projects/wp-plugins/user-agent-body-class)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/user-agent-body-class/),
check out the [SVN repository](https://plugins.svn.wordpress.org/user-agent-body-class/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/user-agent-body-class/)
by [RSS](https://plugins.trac.wordpress.org/log/user-agent-body-class/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.2

_Release Date – 26 March 2020_
 * Adds support for new Chromium Edge thanks to my
friend Jan!

#### 1.1

_Release Date – 28 November 2017_
 * Adds support for Edge

#### 1.0

_Release Date – 28 September 2016_
 * Initial release

## Meta

 *  Version **1.1**
 *  Last updated **6 वर्षाः ago**
 *  Active installations **200+**
 *  WordPress version ** 4.3 or higher **
 *  Tested up to **5.2.24**
 *  Language
 * [English (US)](https://wordpress.org/plugins/user-agent-body-class/)
 * Tags
 * [browser detect](https://sa.wordpress.org/plugins/tags/browser-detect/)[php](https://sa.wordpress.org/plugins/tags/php/)
   [user agent](https://sa.wordpress.org/plugins/tags/user-agent/)
 *  [Advanced View](https://sa.wordpress.org/plugins/user-agent-body-class/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  3 5-star reviews     ](https://wordpress.org/support/plugin/user-agent-body-class/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/user-agent-body-class/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/user-agent-body-class/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/user-agent-body-class/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/user-agent-body-class/reviews/?filter=1)

[Add my review](https://wordpress.org/support/plugin/user-agent-body-class/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/user-agent-body-class/reviews/)

## Contributors

 *   [ WP Academic ](https://profiles.wordpress.org/eastsidecode/)
 *   [ Louis ](https://profiles.wordpress.org/louis/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/user-agent-body-class/)