Created
October 4, 2019 08:40
-
-
Save mirkoschubert/23f10dda964d51bb679dbb3158da3911 to your computer and use it in GitHub Desktop.
Give a WordPress Child Theme a body Class
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
/** | |
* Custom Body Class for Child Theme | |
*/ | |
function child_body_class( $classes ) { | |
$classes[] = 'child'; | |
return $classes; | |
} | |
add_action( 'body_class', 'child_body_class' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment