Created
September 13, 2017 13:31
-
-
Save cobaltapps/467e09bb7c07998cf64928f77ce71621 to your computer and use it in GitHub Desktop.
Easily add custom body classes to your site using the following code inside your Child Theme's PHP files.
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 a single body class through a string. | |
freelancer_add_body_classes( 'my-custom-body-class' ); | |
// Add multiple body classes through an array. | |
freelancer_add_body_classes( array( 'my-custom-body-class', 'another-body-class' ) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment