CSS: 42 characters to hide post author info and byline in Twenty Fifteen

Since I’m the only one posting here, I added the following CSS:

.author-info, span.byline {
display: none;
}

i-am-invincible

You can compare how the author information (single post and byline) is displayed on the Twenty Fifteen demo.

If your blog is on WordPress.com, you’ll need Custom Design, which is a feature of the WordPress.com Premium and WordPress.com Business plans.

Published by

Bryan Villarin

Bryan is a Community Guardian at Automattic. He's also a photographer, card magician, and cat whisperer. (Thanks to my friend and colleague Steve Blythe for the sweet photo!)

5 thoughts on “CSS: 42 characters to hide post author info and byline in Twenty Fifteen”

  1. Hi Brian—you shouldn’t need any CSS at all to hide single author bylines in the last few default themes and many themes based on _s (Underscores).

    They use a WordPress function called is_multi_author() to hide the byline of there are not more than 1 author on the blog.

    Like

Talk to me, Goose

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s