Skip to content

Instantly share code, notes, and snippets.

@rickalee
Last active December 22, 2015 05:59
Show Gist options
  • Save rickalee/6427920 to your computer and use it in GitHub Desktop.
Save rickalee/6427920 to your computer and use it in GitHub Desktop.
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