<?php
/**
* Add HTML5 shiv, Respond.js for IE8
*/
add_action( 'wp_head', 'ie_support_header', 99 );
function ie_support_header() {
echo '<!--[if lt IE 9]>' . "\n";
echo '<script src="' . esc_url( get_template_directory_uri() . '/inc/js/html5shiv.min.js' ) . '"></script>' . "\n";
echo '<script src="' . esc_url( get_template_directory_uri() . '/inc/js/respond.min.js' ) . '"></script>' . "\n";
echo '<![endif]-->' . "\n";
}
Last active
August 29, 2015 14:02
-
-
Save oranblackwell/42ca6ff5b160768ca42b to your computer and use it in GitHub Desktop.
Add HTML5 Shiv and Respond .js to end of wp_head()
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment