Posted By

mb2o on 12/13/10


Tagged

wordpress


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

neilp123
mb2o
qubestream


HTML5 Shim in functions.php


 / Published in: PHP
 

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

  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');

Report this snippet  

You need to login to post a comment.