Skip to content

Instantly share code, notes, and snippets.

@brandonhimpfen
Last active December 22, 2015 03:39
Show Gist options
  • Save brandonhimpfen/6412098 to your computer and use it in GitHub Desktop.
Save brandonhimpfen/6412098 to your computer and use it in GitHub Desktop.
WordPress: "Add HTML5 Shim To Your Theme’s Header" - Add this function to your theme’s functions.php file.
// add HTML5Shim to your theme's header
function html5_shim () {
echo '<!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->';
}
add_action('wp_head', 'html5_shim');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment