Skip to content

Instantly share code, notes, and snippets.

@fabianjaehnke
Created April 22, 2014 12:06
Show Gist options
  • Save fabianjaehnke/11176238 to your computer and use it in GitHub Desktop.
Save fabianjaehnke/11176238 to your computer and use it in GitHub Desktop.
// add ie conditional html5 shim to header
function add_ie_html5_shim () {
echo '<!--[if lt IE 9]>';
echo '<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>';
echo '<![endif]-->';
}
add_action('wp_head', 'add_ie_html5_shim');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment