Created
November 25, 2013 19:59
-
-
Save timskye/7647794 to your computer and use it in GitHub Desktop.
This adds a body class to all pages on the site, and should be placed in functions.php in Genesis framework
This file contains 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 custom body class to the head | |
add_filter( 'body_class', 'hd_body_class' ); | |
function hd_body_class( $classes ) { | |
$classes[] = 'my-custom-class'; | |
return $classes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment