Created
February 17, 2013 06:27
-
-
Save wpscholar/4970450 to your computer and use it in GitHub Desktop.
An OK way to handle loading of IE conditional stylesheets in WordPress.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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