Last active
December 17, 2015 23:58
-
-
Save braddalton/5692719 to your computer and use it in GitHub Desktop.
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_filter( 'body_class', 'homepage_custom_class' ); | |
/** | |
* @author Brad Dalton - WP Sites | |
* @learn more http://wpsites.net/ | |
*/ | |
function homepage_custom_class( $classes ) { | |
if ( is_home() ) | |
$classes[] = 'home-class'; | |
return $classes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment