Skip to content

Instantly share code, notes, and snippets.

@rickalee
Last active Dec 22, 2015
Embed
What would you like to do?
HTML5 for IE
<?php
add_action( 'wp_head', 'swg_add_ie_html5_shim' );
function swg_add_ie_html5_shim() {
global $is_IE;
if ( $is_IE ) {
echo '<!--[if lt IE 9]>';
echo '<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>';
echo '<![endif]-->';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment