Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
* Add styles and scripts to a WordPress site
* See
function my_scripts_styles(){
global $wp_styles;
// Load IE version-specific stylesheets
wp_enqueue_style( 'html5shiv', '', array(), '3.7.2', 'screen' );
$wp_styles->add_data( 'html5shiv', 'conditional', 'lt IE 9' );
add_action('wp_enqueue_scripts', 'my_scripts_styles');
<!-- HTML OUTPUT -->
<!--[if lt IE 9]>
<link rel='stylesheet' id='html5shiv-css' href='' type='text/css' media='screen' />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment