Skip to content

Instantly share code, notes, and snippets.

@jbutko
Created January 15, 2014 20:55
Show Gist options
  • Save jbutko/8444466 to your computer and use it in GitHub Desktop.
Save jbutko/8444466 to your computer and use it in GitHub Desktop.
WP, functions.php: Enqueue scripts for only if LT IE 9
add_action( 'wp_head', function() {
echo '<!--[if lt IE 9]><script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->';
} );
//From http://stackoverflow.com/questions/11564142/wordpress-enqueue-scripts-for-only-if-lt-ie-9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment