How to Remove the Date from WordPress Comments and Keep Your Discussion Fresh

Last Updated on March 16, 2023 by 14 Comments

Editorial Note: We may earn a commission when you visit links on our website.
How to Remove the Date from WordPress Comments and Keep Your Discussion Fresh
Blog / Tips & Tricks / How to Remove the Date from WordPress Comments and Keep Your Discussion Fresh

One of the biggest challenges that every blog faces is trying to drive interest towards its older content. As time passes, it’s normal for visitors to avoid aging articles and opt to read newer ones. To put it simply, your pieces may have an ‘expiration date’, and that’s not always a good thing. The same goes for your post’s comments. While there are few tricks you can employ, deciding to remove dates from your WordPress comments could be key to keeping your content fresh.

In this article, we’ll first discuss why you’d want to remove dates from your WordPress comments, then teach you three ways to do so. Let’s get to work!

Why You’d Want to Remove the Date From Your WordPress Comments

A Divi comments section displaying the dates for each entry.

Displaying the dates of your comments can be useful, but it can also discourage people from checking them out down the road.

Showing the dates for each post in your comments section sounds like a no-brainer – after all, it’s a small feature that enhances usability.

The bad news is that including dates can also impact your content’s reception. As we mentioned earlier, it’s common for users to pass over content if they think it’s too old, and the same thing happens to comment sections. There might be lots of useful information in the comments of your posts, but if they were added more than a couple of years ago, it’s likely that visitors will skip over them to look for more recent insights.

Removing the dates from your comments is a small tweak, but it can help to keep your content evergreen. The good news is that WordPress makes this easy to achieve.

How to Remove the Date From Your WordPress Comments (In 3 Different Ways)

If you’re not a Divi user, don’t worry – either of the first two methods in this section should work on your site. However, if you are a Divi user, you can skip to method number three, where we talk about how to remove the date from your comments using the Comments module.

1. Use the Better Recent Comments Plugin

The Better Recent Comments plugin enables you to get more control over your comment sections by choosing which elements they should include. Plus, it enables you to add new comment sections using either a widget or simple shortcodes. While it hasn’t seen recent development, we found no issues during testing – and it also works well with Divi.

The Better Recent Comments plugin.

To get started, simply install and activate the plugin since it doesn’t have any additional configuration options. If you want to use the Better Recent Comments widget feature, you can find it by heading into Appearance > Widgets on your dashboard:

The WordPress Widgets tab.

From here, drag the Better Recent Comments widget to any section you like and you’ll see the option to choose which elements it should include:

Customize the elements of your WordPress comments section.

You can choose how many comments you want the section to display. If you want to keep the widget as close to WordPress’ default comment sections as possible, set a large number.

As you can see, there’s also an option to show the date of each comment on your widget. Go ahead and disable it now and save your changes. If you navigate to the front end of your site, you’ll see how it all looks:

A WordPress comments widget without dates.

If you want to display your updated comments section somewhere else on your page, you’ll need to use the plugin’s shortcode system. To do so, just open the WordPress editor and paste in the following wherever you want:

[better_recent_comments number="50" format="{avatar} {post} - {comment}"]

This tells the plugin to only include the enclosed elements. In this case, that’s your commenters’ avatars, usernames, and what they wrote. Here’s how it looks when seen from the other side:

Removing your WordPress comment date using a shortcode.

That’s pretty much it! Now let’s talk about how to implement this feature without using plugins.

2. Edit Your Theme’s style.css file to Remove Dates from Your WordPress Comments

If you don’t want to use a plugin to display your comment sections, you can also remove the dates from all of them using a tiny CSS snippet:

A WordPress comment without a date.

Since we’re not using Divi for this example, you’ll need to add the following snippet to your theme – ideally your child themestyle.css file. You can do that by heading to the Appearance > Editor tab on your dashboard and looking for the file on the list to your right:

Modifying your WordPress' style.css file.

Now paste this snippet to the bottom of your style.css file and save your changes:

.comment-metadata { display: none }

Keep in mind – the comment-metadata class may change depending on which theme you’re using. If the code above isn’t working and you’re not sure which class to use, you can find out by using Google Chrome’s Inspect tool. Just right-click the date on your WordPress comments, click on the Inspect button, and check out the name of the class for your theme:

Inspecting your WordPress elements.

Update the code snippet above accordingly, and you’ll be good to go!

3. Add CSS to Your Divi Comments Module

A Divi comments section without dates.

Using Divi to remove dates from your WordPress comments is a snap.

One of the advantages of using Divi is that you don’t need to delve into your theme files to make simple aesthetic changes. There’s a myriad of options at your disposal using the theme’s own Divi Builder, and options that aren’t included within the settings can still be tweaked using the Custom CSS field.

For example, removing the date from your Divi comment sections is as easy as heading into the Divi > Theme Options tab on your dashboard and adding the following snippet into the Custom CSS field:

.comment_date { display: none; }

Now save your changes, and take a look at your handiwork as seen from the front end of your site. All it took was a single line of code and less than a couple of minutes!


As time goes by, it’s normal for some of your content to lose relevance. However, in some cases even your most relevant content can lose out on views after a while, and removing the dates from your WordPress comments can make readers pay more attention to it.

Depending on your setup, there are three ways to achieve this:

  1. Use the Better Recent Comments plugin.
  2. Remove the date from your default WordPress theme.
  3. Remove the time from your Divi Comments module.

Now that you’re on your way to removing comment dates, look at these comment plugins that can add other functionalities to your comment sections.

What do you think is the best way to keep your WordPress content relevant for as long as possible? Share your thoughts with us in the comments section below!

Article thumbnail image by Pretty Vectors /


Want To Build Better WordPress Websites? Start Here! 👇

Take the first step towards a better website.

Get Started
Premade Layouts

Check Out These Related Posts

Splice Video Editor: An Overview and Review

Splice Video Editor: An Overview and Review

Updated on March 10, 2023 in Tips & Tricks

Video is a valuable form of content for social media. Unfortunately, creating quality videos is usually a long process that involves moving mobile footage to a desktop app for editing. However, mobile editing is on the rise. Apps such as Splice Video Editor make it possible to efficiently create...

View Full Post
How to Use Font Awesome On Your WordPress Website

How to Use Font Awesome On Your WordPress Website

Updated on September 16, 2022 in Tips & Tricks

When given the choice between using a vector icon or a static image, it’s a good idea to go with the vector. They’re small and fast to load, and they can scale to any size without a loss of resolution. Font Awesome is a superb library of vector icons that you can use on your websites,...

View Full Post


  1. Thanks for the tip. ive always wanted to remove the time. See a lot of people wont comment if you have really old comments on your blog.

  2. I just found out that it is also possible to remove the date from the comments from just one particular Divi blog post. You can do that by applying the custom CSS code .comment_date { display: none; } to just one particular blog post. Thank you for this great tutorial.

    • Hi Andrej! You’re welcome, and thanks for the tip. 🙂

  3. very nice artical

    • Thanks! 🙂

  4. Poor Internet…

  5. Thank.

    But is it possible to remove only the year..?

    Thank you.

    • That’s certainly possible, though it may require some more detailed coding work. We’d recommend starting a post in the forums ( to see if another user knows how to go about it. 🙂

  6. is it possible to do an “if/then” for dates? If more than 30 days old, set display = ‘none’ ?

    • Hi Scott! There likely is a way, though you’ll probably have to get your hands dirty with some coding. Try posting in the forums ( to see if other users have any ideas that can help.

  7. I don’t believe that getting more reads is more important than telling your readers the relevance of your comments.

    • Hi Dave; thanks for your comment. Removing the dates from your comments section isn’t necessarily the best approach for every site – you have to decide what’s best for your specific readers.

  8. I go around the web a lot and I gather and analyze a lot of information. In those cases having a date is sometimes important, as I can see if some datum is outdated. In the case of blogs, I think it’s good to see at least the date of the original post and the comments are always relative to that. This is especially important in fields like SEO. E.g. If someone promotes some old SEO strategy and the date is 2017, you know that the guy is not real. You can always go back to an old post and put and “updated” with the current date, which I consider a great solution. In the case of comments, I don’t think date matters.

    • Hi Peter; you make some good points. There are definitely pros and cons to keeping or removing dates from your comments section. 🙂

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

Get Started With Divi