WordPress plugin intelligence profile

Browser Body Classes with Shortcodes

Adds browser-specific body classes for styling, and shortcodes to show or hide content to/from specified browsers and devices.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 3.9
Current version1.6
WordPress coverageTested up to WordPress 3.9
Minimum stackWP 3.3 · PHP —
Directory statusactive
Last directory update9 May 201412y ago
Active installations10Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 4 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Browser Body Classes with Shortcodes version 1.6 as active, updated 12y ago and tested up to WordPress 3.9.

Overview

About this plugin

Adds browser-specific body classes for styling, and shortcodes to show or hide content to/from specified browsers and devices.

-

9.

-

5, includes new body classes, including catch-alls like: desktop, handheld, mobile, and tablet.

-

4, includes Shortcode Generator Modal Window, and 16 new Browser Body Classes, for a total of 33.

-

3, includes Shortcode Generator Meta Box, and an Options page, with the option to restrict access to the Meta Box according to user capability, or disable it altogether.

Browser Body Classes with Shortcodes provides more than 40 browser-specific body classes to make styling your site for different platforms and devices a cinch. The plugin also comes with two powerful, yet simple, shortcodes to specify which browsers/devices to show content to, and which to hide it from. Still don’t feel like typing all those browser names?

No worries! Browser Body Classes with Shortcodes comes with two different shortcode generators, with options to control who gets to use them.

The two shortcodes each have just one required attribute: [showto browser=””][/showto] and [hidefrom browser=””][/hidefrom]

  • Example: [showto browser=”firefox ie10″] Your Content [/showto]

This will show the content only to Firefox and IE10.

  • Example: [hidefrom browser=”opera safari chrome”] Your Content [/hidefrom]

This will hide the content only from Opera, Chrome, and Safari.

  • Example: [hidefrom browser=”unknown”] Your Content [/hidefrom]

This will hide the content from any browser not in the list of browser options below.

Note: You can use other shortcodes inside these shortcodes. You can also put a [hidefrom] shortcode inside a [showto] shortcode, but not the other way around.

  • Example: [showto browser=”firefox chrome”]Chrome and Firefox will see this. [hidefrom browser=”firefox”]Firefox won’t see this but Chrome will.[/hidefrom][/showto]

Browser options must be all lowercase and must contain a space or a comma between them if multiple are used. Acceptable Browser options are:

-

desktop

-

handheld

-

tablet

-

mobile

-

ios

-

firefox

-

chrome

-

safari

-

opera

-

maxthon

-

msie

-

ie5

-

ie6

-

ie7

-

ie8

-

ie9

-

ie10

-

ie11

-

ns4

-

lynx

-

samsunggalaxytablet

-

kindlefire

-

kindlesilk

-

ipad

-

iphone

-

ipod

-

android

-

blackberry

-

skyfire

-

operamobile

-

operamini

-

samsung

-

winmobile

-

iemobile

-

nokia

-

motorola

-

palm

-

symbian

-

lg

-

blazer

-

bolt

-

unknown

Requirements

-

2+

-

3+

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • body classes
  • browser body classes
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 3.9

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 3.9.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to3.9
Minimum requirementsWordPress 3.3 · PHP not listed
Update activity9 May 201412y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.