I\'d like to place a directive in my theme\'s functions.php file which appends a classname to the wordpress body tag. Is there a built-in API method for this?
For exampl
Try this..
add_filter( 'body_class', 'custom_class' ); function custom_class( $classes ) { if ( !is_front_page() ) { $classes[] = 'example'; } return $classes; }