Created
January 13, 2017 03:44
-
-
Save adityadaniel/dcdc88422d47b6c580f5fe4b53d16b0f to your computer and use it in GitHub Desktop.
Add custom class to body in Genesis themes
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 custom body class to the head | |
add_filter( 'body_class', 'uc_body_class' ); | |
function add_body_class( $classes ) { | |
$classes[] = 'name-of-css-class-goes-here'; | |
return $classes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment