Last active
December 21, 2015 19:59
-
-
Save AMNDesign/6358494 to your computer and use it in GitHub Desktop.
Add a custom body class in WordPress.
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
<?php | |
//* Add custom body class | |
add_filter( 'body_class', 'amn_add_body_class' ); | |
function amn_add_body_class( $classes ) { | |
$classes[] = 'my-custom-body-class'; | |
return $classes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment