Last active
September 21, 2015 19:49
-
-
Save benweiser/1222a875bd552e66e582 to your computer and use it in GitHub Desktop.
Add a custom body class to genesis single.php in your child theme's folder
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
<?php | |
add_filter('body_class', 'single_posts_body_class'); | |
function single_posts_body_class($classes) { | |
$classes[] = 'custom-single'; | |
return $classes; | |
} | |
genesis(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment