Browser Body Classes with Shortcodes

By : thomstark

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

  • As of v1.6, compatible with WordPress 3.9.

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

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

  • As of v1.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

azurecurve Mobile Detection

Plugin providing shortcodes and functions to allow different content to be served to different types of device (Desktop, Tablet, Phone); also includes checks on types of device (iOS, iPhone, iPad, Android, Windows Phone) and mobile browsers (Chrome, Firefox, IE, Opera, WebKit). The following shortc.........

Similar: 54%

WPtap Mobile Detector

This plugin automatically detects the type of mobile browser that you site is viewed from, and activates the mobile theme you have chosen for it. User can install multiple mobile themes and link it to different mobile browsers for best performance. If you have a separate WAP or mobile website, this .........

Similar: 42%

Browser Blocker

The Browser Blocker Plugin puts the power in your hands to control what browsers(versions) can access your website content and which ones cannot. For the browsers(versions) that you block, the user has control over the splash screen that their clients receive. There is a "simple" mode for those who .........

Similar: 38%

Browser Update Ribbon

Puts a ribbon on the website if the user browser is older than expected. Minimum browser versions are customizable in the Settings menu, along with the title and a custom link. Now you can set the position and the image of the ribbon. This plugin has full support for translation into other language.........

Similar: 36%

Advanced Browser Check

This plugin requires PHP 5.3 or above This plugin give you the option to give a visitor of your site a warning popup if they use a browser that you don't support. For example, Internet Explorer 9 or lover. It supports the 5 largest and most popular browser on the market. Firefox Chrome Safari Op.........

Similar: 35%

Mobile Device Detection by 51Degrees

The 51Degrees mobile device detection plugin is a complete pack to help mobilize your website and blog. It includes a mobile device detector and switcher to select themes based on the type of device visiting your website, a selection of mobile themes and an administration tool to allow easy, quick .........

Similar: 32%

MobilePress

MobilePress is a plugin for WordPress that renders a mobile friendly version of your WordPress website or blog. It allows for custom themes and a few other mobile friendly settings. The latest 1.2 release of MobilePress is a rewrite and restructuring of the plugin as it moves towards a MobilePress .........

Similar: 32%

MobStac WordPress Mobile

Renders for mobile visitors a mobile version of your WordPress site, with blazing-fast page loads, multiple themes, support for over 5000 mobile devices (not just iPhones and touch phones), analytics, ad network integration, and awesome support!...

Similar: 32%

IE6 Upgrade Option

Plugin URL http://www.doc4design.com/plugins/ie6-upgrade/ IE6 Upgrade Option utilizes the 25K script created by Free the Foxes: http://www.freethefoxes.com/ as a WordPress plugin. Originally this plugin utilized a smaller 7K script but it's limits had been met in terms of language support, ease-of.........

Similar: 32%

MobileRevenu

WebSite | Stats | Facebook | Twitter | Contact Détecte un terminal mobile et vous permet de le basculer sur une thème mobile, ou de le rediriger vers un site marchand adapté et optimisé pour ce terminal, vous toucherez alors une commission à vie sur chaque vente. Vous avez également la possibilité.........

Similar: 13%