Definition:
function twentyeleven_body_classes( $classes ) {}
Adds two classes to the array of body classes.
The first is if the site has only had one author with published posts. The second is if a singular post being displayed
Parameters
- $classes
Source code
function twentyeleven_body_classes( $classes ) { if ( function_exists( 'is_multi_author' ) && ! is_multi_author() ) $classes[] = 'single-author'; if ( is_singular() && ! is_home() && ! is_page_template( 'showcase.php' ) && ! is_page_template( 'sidebar-page.php' ) ) $classes[] = 'singular'; return $classes; }
14715
No comments yet... Be the first to leave a reply!