Created
March 20, 2012 19:35
-
-
Save stevegrunwell/2140325 to your computer and use it in GitHub Desktop.
Example usage of conditional comments with wp_enqueue_script() (WordPress)
This file contains hidden or 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 | |
wp_enqueue_style('ie7-fixes', get_bloginfo('template_url') . '/css/ie7.css', false, '', 'screen'); | |
global $wp_styles; | |
$wp_styles->add_data('ie7-fixes', 'conditional', 'lte IE 7'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment