Skip to content

Instantly share code, notes, and snippets.

Last active December 22, 2015 05:59
What would you like to do?
HTML5 for IE
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=""></script>';
echo '<![endif]-->';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment