Skip to content

Instantly share code, notes, and snippets.

@lswilson
Created April 24, 2013 00:05
Show Gist options
  • Save lswilson/5448521 to your computer and use it in GitHub Desktop.
Save lswilson/5448521 to your computer and use it in GitHub Desktop.
Add Multisite Blog ID to body_class
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