Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
An OK way to handle loading of IE conditional stylesheets in WordPress.
<?php
add_action( 'wp_print_styles', 'print_my_styles' );
function print_my_styles() {
echo '<!--[if lt IE 9]><link href="style.css" rel="stylesheet" type="text/css"><![endif]-->';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment