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 works at Automattic. Cat whisperer. Sometimes, a photographer and card magician.

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

Please log in using one of these methods to post your comment:

WordPress.com Logo

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

Facebook photo

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

Connecting to %s