How to Hide the Author in WordPress

WordPress doesn’t have any option to hide the author by default. But some website owners may not want to display the author name. In this article, we will show you the easiest way to hide the author name in WordPress.

How to hide the author name in WordPress

1. Open your website in a new tab

2. Open the Developer tools feature in your browser. In Google Chrome you can do it by clicking on the three dots > More tools > Developer tools (Ctrl+Shift+I). Alternatively, you can open it by right-clicking and selecting Inspect.

3. Click on the arrow in the developer tools and select the author element in the page.

As you can see the author metadata is inside a span class named “author”. Now all you need to do is hide it using CSS.

You can either use the Customize option (Appearance > Customize) or a custom CSS plugin to apply this CSS. I will use the theme customizer for this tutorial.

4. Open Customize and go to the Additional CSS menu.

5. Apply a “display: none;” property to the author class. In order to specifically target the author of the post I made sure to target the parent “entry-footer” class as well.

6. Click Publish to save your changes.

The author name should no longer appear in your WordPress posts. However, keep in mind that the classes will be different for each theme. That’s why it’s important to understand the method so you can easily target the author class and hide it using CSS.

To make things easier for you I’m going to provide the exact CSS needed for all the default WordPress themes in this article. That way you can simply copy and paste it instead of wasting time inspecting elements.

How to hide the author in the Twenty 15 WordPress theme

To hide or remove the author name from a WordPress post in the Twenty 15 theme you can apply this CSS.

footer.entry-footer span.byline{
display: none;	
}

How to hide the author in the Twenty 16 WordPress theme

To hide or remove the author name from a WordPress post in the Twenty 16 theme you can apply this CSS.

footer.entry-footer span.byline{
display: none;
}

How to hide the author in the Twenty 17 WordPress theme

To hide or remove the author name from a WordPress post in the Twenty 17 theme you can apply this CSS.

div.entry-meta span.byline{
display: none;	
}

How to hide the author in the Twenty 19 WordPress theme

To hide or remove the author name from a WordPress post in the Twenty 19 theme you can apply this CSS.

div.entry-meta span.byline{
display: none;	
}
footer.entry-footer span.byline{
display: none;	
}

How to remove the author name from WP Astra theme

This plugin will remove the author name from your WP Astra theme.

WP Astra Remove Author Name
WP Astra Remove Author Name
Remove the author name from WP Astra theme.
Price: $9.99

Leave a Comment