Skip to content

Instantly share code, notes, and snippets.

@jbutko
Forked from Pushplaybang/wp-ie-conditional.php
Created May 26, 2013 11:30
Show Gist options
  • Save jbutko/5652528 to your computer and use it in GitHub Desktop.
Save jbutko/5652528 to your computer and use it in GitHub Desktop.
WP, PHP, functions.php: Enqueue HTML5 Shim
// add ie conditional html5 shim to header
function add_ie_html5_shim () {
global $is_IE;
if ($is_IE)
wp_register_script ('html5shim', "http://html5shim.googlecode.com/svn/trunk/html5.js");
wp_enqueue_script ('html5shim');
}
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