WordPress IE CSS (or other content for that matter) Fixes

insert the following in one of your templates:

<?php
if( function_exists(’insert_ie_fixes’) ) {
  insert_ie_fixes();
}
?>

I put it at the bottom of footer.php to make sure it overrides prior declarations, but it may work in header.php as well.

then add the following to functions.php in the theme you are using:

function insert_ie_fixes() {
?>
<!–[if IE]>
<style>
RULES SPECIFIC TO IE GO HERE
</style>
<![endif]–>
<?php
}

this could also be used to insert general styles or scripts.

Leave a comment

  • Tags

  • Categories

  • Need Code Written?

  • Need a Coding Job?

  • Archives