JiveDig
11/11/2013 - 8:16 PM

Add body class

Add body class

//* Add custom body class to the head
add_filter( 'body_class', 'sp_body_class' );
function sp_body_class( $classes ) {
	if ( is_page( 'sample-page' ))
		$classes[] = 'custom-class';
		return $classes;
}