Skip to content

Instantly share code, notes, and snippets.

@timskye
Created November 25, 2013 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timskye/7647794 to your computer and use it in GitHub Desktop.
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
//* 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