_s: simpler way of handling hiding authors on single author blogs without adding another class
git-svn-id: https://wpcom-themes.svn.automattic.com/_s/@8877 d957f892-c61d-0410-b221-f235e6eecf30
This commit is contained in:
parent
545b3514b3
commit
e4a5c76fd6
2 changed files with 2 additions and 5 deletions
|
@ -25,10 +25,6 @@ add_filter( 'wp_page_menu_args', '_s_page_menu_args' );
|
||||||
* @since _s 1.0
|
* @since _s 1.0
|
||||||
*/
|
*/
|
||||||
function _s_body_classes( $classes ) {
|
function _s_body_classes( $classes ) {
|
||||||
// If this isn't a post or a page we'll add the convenient .indexed class
|
|
||||||
if ( ! is_singular() ) {
|
|
||||||
$classes[] = 'indexed';
|
|
||||||
}
|
|
||||||
// Adds a class of single-author to blogs with only 1 published author
|
// Adds a class of single-author to blogs with only 1 published author
|
||||||
if ( is_multi_author() ) {
|
if ( is_multi_author() ) {
|
||||||
$classes[] = 'group-blog';
|
$classes[] = 'group-blog';
|
||||||
|
|
|
@ -402,9 +402,10 @@ a:active {
|
||||||
.hentry {
|
.hentry {
|
||||||
margin: 0 0 1.5em;
|
margin: 0 0 1.5em;
|
||||||
}
|
}
|
||||||
.indexed .byline {
|
.byline {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
.single .byline,
|
||||||
.group-blog .byline {
|
.group-blog .byline {
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue