HTML5 Shim in functions.php


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. // add ie conditional html5 shim to header
  2. function add_ie_html5_shim () {   
  3. echo '<!--[if lt IE 9]>';   
  4. echo '<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>';   
  5. echo '<![endif]-->';
  6. }
  7. add_action('wp_head', 'add_ie_html5_shim');

URL: http://css-tricks.com/snippets/wordpress/html5-shim-in-functions-php/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.