Advertisement
firoze

IE support html5shiv | respond js For WP usages

Dec 18th, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. // Put This code into functions.php
  2.  
  3. function my_theme_ie_support_header() {
  4. echo '<!--[if lt IE 9]>'. "\n";
  5. echo '<script src="' . esc_url( get_template_directory_uri() . '/js/html5shiv.js' ) . '"></script>'. "\n";
  6. echo '<script src="' . esc_url( get_template_directory_uri() . '/js/respond.min.js' ) . '"></script>'. "\n";
  7. echo '<![endif]-->'. "\n";
  8. }
  9. add_action( 'wp_head', 'my_theme_ie_support_header' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement