/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// 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');
URL: http://css-tricks.com/snippets/wordpress/html5-shim-in-functions-php/