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=""></script>';   
  5. echo '<![endif]-->';
  6. }
  7. add_action('wp_head', 'add_ie_html5_shim');


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.