Conditional Stylesheets and Body Classes
Easily include browser specific stylesheets in templates or select browser and version specific classes in CSS. Conditional browser stylesheets are added after the main theme style.css allowing them to overrule previous rules – you only need to add the CSS rules that should change. This plugin uses
About this tool.
Easily include browser specific stylesheets in templates or select browser and version specific classes in CSS.
Conditional browser stylesheets are added after the main theme style.css allowing them to overrule previous rules – you only need to add the CSS rules that should change.
This plugin uses up-to-date WordPress top level functions, sanitizes all input data and is fully internationalized.
For feature request and bug reports, please use the Q Support Website .
Please do not use the WordPress.org forum to report bugs, as we no longer monitor or respond to questions there.
Features
- Checks for and adds browser and version specific stylesheets – such as “browsers-windows-firefox.css”.
- Add browser and version specific body classes to all pages – such as body.browsers-msie-10
- Includes the Mobile Detect class and adds mobile & touch body classes.
- Adds a post type body class, for example: “posttype-page”.
- Inserts handy HTML comments in the HTML footer of template files to tell you which CSS files could be used and which were found.
Getting started.
For an automatic installation through WordPress:
- 01Go to the ‘Add New’ plugins screen in your WordPress admin area
- 02Search for ‘Browsers’
- 03Click ‘Install Now’ and activate the plugin
For a manual installation via FTP:
- 04Upload the browsers directory to the /wp-content/plugins/ directory
- 05Activate the plugin through the ‘Plugins’ screen in your WordPress admin area
To upload the plugin through WordPress, instead of FTP:
- 06Upload the downloaded zip file on the ‘Add New’ plugins screen (see the ‘Upload’ tab) in your WordPress admin area and activate.