Last active
December 27, 2015 14:29
-
-
Save anneallen/7341247 to your computer and use it in GitHub Desktop.
Add Modernizer to html class
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
//Add Modernizer | |
function eva_modernizer_doctype() { | |
?> | |
<!DOCTYPE html> | |
<html class="no-js" <?php language_attributes( 'html' ); ?>> | |
<head> | |
<meta charset="<?php bloginfo( 'charset' ); ?>" /> | |
<?php | |
} | |
remove_action( 'genesis_doctype', 'genesis_do_doctype' ); | |
add_action( 'genesis_doctype', 'eva_modernizer_doctype' ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment