Created
August 23, 2013 18:00
-
-
Save brycejacobson/6322184 to your computer and use it in GitHub Desktop.
Remove html5 shiv from Genesis and add Modernizr instead
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Do NOT include opening php tag | |
//* Remove Genesis hmlt5 shiv and add Modernizr instead | |
remove_action( 'wp_head', 'genesis_html5_ie_fix' ); | |
add_action( 'wp_head', 'add_mondernizr' ); | |
function add_mondernizr() { | |
if ( ! genesis_html5() ) | |
return; | |
echo '<script src="' . get_stylesheet_directory_uri() . '/js/modernizr.js"></script>' . "\n"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment