Skip to content

Instantly share code, notes, and snippets.

@brycejacobson
Created August 23, 2013 18:00
Show Gist options
  • Save brycejacobson/6322184 to your computer and use it in GitHub Desktop.
Save brycejacobson/6322184 to your computer and use it in GitHub Desktop.
Remove html5 shiv from Genesis and add Modernizr instead
<?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