How to Remove Author and Date Information from Your WordPress Posts

Posted on January 11, 2017 by in Tips & Tricks | 40 comments

How to Remove Author and Date Information from Your WordPress Posts

By default, most WordPress themes display a set of meta data on published blog posts. This typically includes at least the author and the date the post was published. Such information can certainly be useful and informative for the reader, but there are certain instances where you might want to remove author and date information. (For example, older ‘evergreen’ posts can benefit from having the published date removed, so as not to imply the content is dated.)

With the above in mind, this post will show you how to remove author and date information in no less than three ways: within the Divi Blog module, using a plugin, or manually within your theme files.

How to Remove Author and Date Information Using the Divi Blog Module

Even though there are many potential instances where you’d like to remove the author and date information, not every theme gives you the option to do so. Fortunately, if you’re a Divi user, we’ve made it super simple to remove this information from your content.

In the Divi Builder, click on Insert Column(s), and in the resulting popup, select the single column (or more depending on your desired layout):

The Divi Builder interface with the Insert Column(s) button highlighted

The Insert Columns popup with a single column highlighted

Next, click on Insert Module(s), and in the popup select Blog:

The Divi Builder interface with the Insert Column(s) button highlighted

The Insert Module popup with the Blog Module highlighted

You will be directed to the General Settings tab of your Blog module. Here you’ll see lots of options to help you tailor your module’s appearance and content, including the layout, number of posts, and which categories you want to display.

If you scroll about halfway down this tab, you’ll see there is a Show Author button followed by a Show Date button:

The Blog Module General Settings tab displaying the Show Author and Show Date buttons

Simply move one or both of these to the No position, and that’s it! The information won’t be displayed on the posts that appear within this module.

How to Remove Author and Date Information Using a Plugin

If your theme doesn’t have Divi’s functionality, you can use a plugin instead. The following two free plugins offer slightly different functionality, so you can choose the one that best suits your needs.

1. WP Meta and Date Remover

The WP Meta and Date Remover title from WordPress.org

WP Meta and Date Remover enables you to remove the author and date information from all of your posts in one go. Once the plugin is activated, all of the meta information is automatically removed. It uses two methods to remove the data: hiding it from the front end via CSS, and removing it from the back end via PHP. The latter method means that the meta data is also no longer visible to search engines, and you have the option to use just one method or both.

Key features:

  • Easy to install and setup.
  • Hides information from front and back ends.

Price: FREE | More information

2. WP Old Post Date Remover

The WP Old Post Date Remover title from WordPress.org

As its name suggests, this plugin is specifically designed to remove date information only. It’s particularly useful if you have lots of evergreen content or a site that you don’t update regularly. If you’d like to keep the date on newer posts, you can select the number of days you want the date to be displayed for.

This plugin doesn’t have the option to hide the date from search engines, so it will still be displayed there. It also has a couple more pitfalls, such as incompatibility with some themes. However, the author does offer support for this and other issues.

Key Features:

  • Easy to install and set up.
  • Option to display date on newer posts.

Price: FREE | More information

How to Remove Your Meta Data Using WP Meta and Date Remover

Both of the above plugins are very intuitive when it comes to setup, but let’s take a quick look at how to adjust your settings for the WP Meta and Date Remover plugin.

Once you have your plugin installed and activated, select the Settings tab in your dashboard and choose WP Meta and Date Remover. The resulting screen will look something like this:

The WP Meta and Date Remover Settings screen

Once you’re in here you have a couple of options. The first check box is for PHP removal, which removes the meta information from the source code so that even search engines can’t read it. The second one is for CSS removal, which prevents the meta information from being displayed on the front end. By default, the plugin will remove data by both methods unless you check one of the boxes.

Once you have made your changes, don’t forget to hit the Save Changes button at the bottom.

How to Remove Author and Date Information Manually (in 3 Ways)

If you’re comfortable adding or editing code, you can remove author and date information manually. In this section we’ll take a look at three ways to do this.

Before we dive in, it’s important to note that prior to making these changes, you should back up your theme’s files just in case. We recommend using a plugin such as UpdraftPlus.

1. Add CSS Using Jetpack

If you have Jetpack installed, you will have access to a Custom CSS tab where you can add the appropriate code. First, you’ll need to activate the tab in the Jetpack Settings screen. In your dashboard select Jetpack, then choose Settings. In the resulting screen, choose the Appearance tab and scroll down to the Custom CSS button. Make sure it is in the activated (blue) position and you’re all set to continue:

A section of the Jetpack Appearance screen showing the Custom CSS button

Now in your main dashboard, select Appearance, and choose Edit CSS. You’ll be taken to a screen that looks like this:

Jetpack's CSS Stylesheet Editor

Here you can insert the following code:

.entry-meta .byline, .entry-meta .cat-links { display: none; }
.entry-meta .posted-on { display: none; }

(Code snippet source: Design Wall)

Finally, hit Save Stylesheet and you’re done. The author and date should no longer be visible on any posts.

2. Add CSS in Your Theme Customizer

Some themes have a Custom CSS tab within the customizer, the location being theme dependent. If you have access to a tab like this you can simply add the same code that we used above:

A theme customizer CSS tab with the code inserted

If you’re unsure whether your theme has this option or where to find it, your best bet is to ask the theme author or consult your documentation.

3. Delete Code From Your Theme’s Files

One more option is to delete the lines entirely from your theme files. When making edits directly to your theme files, we recommend using a child theme and backing up your site prior to making changes. It is also a good idea to ask your theme author which files contain the author and date information and whether it is okay to delete it.

Once you know which files you need to edit, you can use an FTP client to delete the relevant lines of code. If you don’t already have one, we recommend FileZilla, which is free and easy to use.

Once you’re logged into FileZilla, locate the file(s) that you need to edit in the Remote site section and drag them to your Desktop in the Local site section.

The Local site and Remote site sections of FileZilla's interface

Create and rename a copy of each file to keep as a backup, then open and edit the original files using a code editor such as Atom. Once you have deleted the relevant lines of code, you can drag the edited files back into the FTP client interface to their original folders. You will be asked to confirm that you want to replace the files. Select Overwrite and click OK. Now you can go to your website to check that the changes have been made successfully.

Conclusion

Although author and date meta tags have their benefits, they’re not appropriate for every website. Whether you have evergreen content, a single author site, or another reason for meta removal, it can be helpful to know how to hide or remove author and date information. Thankfully, this is a relatively simple task, especially of you’re a Divi user.

In this article we’ve outlined three methods to help you tailor your meta information to suit your needs. Let’s recap them quickly:

  1. Use the Divi Blog module: Simply toggle the Show Author and Show Date buttons to the No position.
  2. Use a plugin: Install and activate a plugin such as WP Meta and Date Remover or WP Old Post Date Remover.
  3. Manually remove the meta information from your theme files: Add CSS using Jetpack or your theme customizer, or delete lines from theme files using an FTP client.

Have you ever needed to remove meta information from your website’s posts? Let us know in the comments section below, and don’t forget to subscribe so you can follow the conversation!

Article thumbnail image by Denis Demidenko / shutterstock.com

40 Comments

    • John Hughes

      Thanks for the addition, Eugene!

  1. Also remember that since version 4.7, WordPress now has a built-in Additional CSS editor accessible from the Customiser.

    • John Hughes

      Correct! Thanks for the update. 🙂

  2. Hi John,

    You say “Some themes have a Custom CSS tab within the customizer”. However, since WP 4.7, custom CSS is a standard option in the customizer 😉

  3. I tried the first method, but when the blog module is added to my posts, the post’s layout becomes skewed.

    • John Hughes

      Without knowing the intricacies of your site, I’m unable to offer exact help. Maybe you could try posting your issue in our forums? (https://www.elegantthemes.com/forum/)

  4. Why don’t we just use the Additional CSS from WordPress 4.7?

    • John Hughes

      You can, but this is simply another option.

  5. Thanks for the great post John! 🙂 Funnily enough I’d like to be able to display the icons for these elements, just like they are displayed when you use the divi theme options / layout tab? You know the really author, date, categories and comments icons. All I see on my posts is the comments icon. How do I do that? Thanks.

  6. On the Divi posts slider (I’m not talking about the individual posts displayed after a post has been clicked), it would be nice to have the option to display just the author and date. Right now, the only choice is between nothing and author/date/comments/star rating. Since I don’t want comments and star rating, I have to turn author and date off, which seriously detracts from the functionality of this module. More flexibility, please.

    • John Hughes

      You can let us know directly about this via the forums – specifically the suggestions forum (https://www.elegantthemes.com/forum/). It’s read by our developers, and you may see it in a future version of Divi. 🙂

  7. This post provides me the info I was looking for. Thank you John!
    I just wonder, when using the CSS method, if author and date information is still visible by Google.

    • John Hughes

      Without knowing how your site is coded, I wouldn’t know the answer unfortunately. The best way to figure this out is to inspect the element in your favorite browser. If it doesn’t show up, it’s likely not going to be crawled.

  8. I am looking for a way to remove the comments information from my blog. I have comments disabled on my blog posts, but they show up in the metadata part of my blog with a big Ø (zero) after it 🙁

    May be missing something obvious. Any easy ways to turn off this feature?

    • John Hughes

      I’m not sure off the top of my head, Bert. You could always try posting in our forums (https://www.elegantthemes.com/forum/) – another user may have the answer for you. 🙂

  9. In my opinion it’s better to update an old post rather than hide its date. Also, I would welcome Divi to have an option for showing “Last Updated:” text before the post’s date. I had to code this manually by adding some custom code to the functions.php file of my child theme. If I’m correct, e.g. Thrive Themes have this feature.

    • John Hughes

      Hi Andrej, thanks for your comment! If you have any suggestions for future versions of Divi, feel free to post them in the forums (https://www.elegantthemes.com/forum/).

  10. Hi John, I’ve got my dates removed using Divi. What do you recommend to remove the dates from the comments that are left for you? The majority of my content is everygreen, back the dated comments give me up!

    • John Hughes

      Hello Sarah – I’m not sure on that one, because it depends on your knowledge and your desired end result.

      The best advice is to write up a post on our forums (https://www.elegantthemes.com/forum/). Other Divi users may have come across a soultion you’d be happy to try out.

  11. Thanks for sharing! I was looking for ways to remove the author name from my blog and searched for the solution and thank God I stumbled to elegant themes! You have explained it simply and effectively!

    • John Hughes

      No problem, Simon!

  12. There are some places that adding the author and date just doesn’t fit! This is “must have” knowledge when stream lining the look and feel of your site. Thanks John!

    • John Hughes

      Thanks, Sean. 🙂

  13. Thanks, it was very useful for me, But I will use plugin method. Its quite simple.

    • John Hughes

      If you’ve got a solution that works for you, more power to you. 🙂

  14. Thanks for sharing an informative blog. It’s very useful and will use in future 🙂 . But I mostly prefer manually.

    • John Hughes

      You’re welcome! 🙂

  15. The Divi solution works except when I click into the post, then it has the metadata including Author, Categories, Date, Comments…I’d like to remove it at this level too? How do I do this? I’m not using Divi Builder because it indents the post when I do…anybody else have this issue? Thx! Rob

    • John Hughes

      You may need to do some additional coding to achieve that, Rob. Try explaining exactly what you want to do in the forums (https://www.elegantthemes.com/forum/) to see if another user can help. 🙂

  16. Thanks for the info. But what about search result page.
    How do I remove the author information? I am using the Divi theme.
    One way is to just use css but I want to remove it “fully”. As I am using a child theme it would be possible to alter the search result page, but where is it?

    • John Hughes

      You’ll need to delve into your Divi core files to find the right template, copy the file to your child theme’s folder, then edit the PHP accordingly. If you have any trouble, drop us an email and we’ll try to help you further. Good luck, and thanks for your comment. 🙂

  17. Do we have to do this for each post? Or does it change it universally? I can’t seem to do it for all posts.

    • Nathan B. Weller

      This should affect all of your posts at once.

  18. Well, I installed and activated the WP Meta and Date Remover plugin, but now my blog posts just say “Posted on By”. How the heck do I get rid of that?

  19. I wanted to know something a bit of the opposite. How would I get blog posts for only certain Authors to appear??

  20. I wanted to know something a bit of the opposite. How would I get blog posts for only certain Authors to appear??

  21. What If We Not Delete or Change The Date?? Is It Harmful or Dangerous or any thing else.

401,632 Customers Are Already Building Amazing Websites With Divi. Join The Most Empowered WordPress Community On The Web

We offer a 30 Day Money Back Guarantee, so joining is Risk-Free!

Sign Up Today

Pin It on Pinterest