Created
April 24, 2013 00:05
-
-
Save lswilson/5448521 to your computer and use it in GitHub Desktop.
Add Multisite Blog ID to 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
add_action( 'body_class', 'ms_body_class' ); | |
function ms_body_class( $class ) { | |
global $current_blog; | |
$class[] = 'ms-' . $current_blog-> blog_id; | |
return $class; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment