Last active
December 22, 2015 03:39
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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