diff --git a/functions.php b/functions.php index 52f51b434..c8ed8628c 100644 --- a/functions.php +++ b/functions.php @@ -336,11 +336,11 @@ function twentytwelve_entry_meta() { // Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name. if ( $tag_list ) { - $utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s by %4$s.', 'twentytwelve' ); + $utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s by %4$s.', 'twentytwelve' ); } elseif ( $categories_list ) { - $utility_text = __( 'This entry was posted in %1$s on %3$s by %4$s.', 'twentytwelve' ); + $utility_text = __( 'This entry was posted in %1$s on %3$s by %4$s.', 'twentytwelve' ); } else { - $utility_text = __( 'This entry was posted on %3$s by %4$s.', 'twentytwelve' ); + $utility_text = __( 'This entry was posted on %3$s by %4$s.', 'twentytwelve' ); } printf( @@ -386,6 +386,9 @@ function twentytwelve_body_class( $classes ) { if ( wp_style_is( 'twentytwelve-fonts', 'queue' ) ) $classes[] = 'custom-font-enabled'; + if ( ! is_multi_author() ) + $classes[] = 'single-author'; + return $classes; } add_filter( 'body_class', 'twentytwelve_body_class' ); diff --git a/style.css b/style.css index ae4323b47..c19a97ac0 100644 --- a/style.css +++ b/style.css @@ -881,6 +881,9 @@ footer.entry-meta { line-height: 1.846153846; color: #777; } +.single-author .entry-meta .by-author { + display: none; +} /* =Archives