This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Krusty MSIE Body Classes

Description

This plugin will will only work if the current theme uses the ‘body_class’ filter to build a list of classes for the body tag of the sites public pages. Themes that I know use this filter include:

  1. Sandbox
  2. Carrington
  3. K2
  4. Twenty Ten

The tags this plugin inserts are as follows:

  • browser-msie (when any browser identifies itself as Internet Explorer)
  • browser-msie-{MAJOR VERSION} (where {MAJOR VERSION} = 3/4/5/6/7/8)
  • browser-msie-{MAJOR VERSION}-{MINOR VERSION} (only when a browser has identified itself as Internet Explorer 5.5)
  • browser-msie-old (for any browser that idnetifies itself as Internet Explorer 6 or less)

So, if your site is hit by Internet Explorer 5.5 the body tag will look something like:

<body class="wordpress y2008 m11 d19 h22 home blog loggedin browser-msie browser-msie-5 browser-msie-5-5 browser-msie-old"> 

This allows for easy adjustment of css for Internet Explorer browsers. Such as:

  • setting a fixed width for internet explorer versions that are to old to recognize the max-width & min-width attributes
  • adjusting margins and padding for IE versions that blow them out of whack
  • showing links to Firefox and Opera download pages only to IE users :^P

If you have any questions, suggestions, or comments feel free to drop by the Krusty MSIE Body Classes page at rustykruffle.com.

Installation

WordPress Users:

  1. Unzip the krusty-msie-body-classes.zip file
  2. Upload the krusty-msie-body-classes directory to the /wp-content/plugins/ directory on your server
  3. Activate the plugin through the ‘Plugins’ menu in WordPress

-OR-

  1. Just install it through the admin panel in your blog.

Contributors & Developers

“Krusty MSIE Body Classes” is open source software. The following people have contributed to this plugin.

Changelog

Version 1.0.0

  • Initial release

Version 1.0.1

  • Minor updates to readme.txt & Plugin information

Version 1.0.2

  • Minor updates to readme.txt & Plugin information