When you publish a new post in WordPress, the date and time are displayed near the post title by default. While this helps users organize their content chronologically, having old posts on a site can prove to be detrimental if the blog is not updated regularly.
For example, it can discourage readers from returning to your site because it suggests that you haven’t been very active lately.
Luckily, WordPress offers a handful of techniques for erasing the date and time from your blog posts, and most can be accomplished without any knowledge of code. By hiding this information from visitors, you may be able to generate more clicks with your older posts.
In this article, we’ll discuss why you might want to remove the date from your WordPress posts. We’ll then show you how to do it. Let’s dive right in!
When you’re writing posts that are not time-specific, it’s usually not necessary to include the date. For example, consider evergreen posts like how-to guides, Q&As, and case studies.
Content that is evergreen typically stays relevant for years, or even decades. In this case, removing the date may encourage readers to continue reading your blog post without worrying about when it was published.
For their list of SEO tools, Buffer removed the post’s date and instead included the last update year in the title:
On the other hand, one could argue that keeping the date and time is vital for maintaining credibility. After all, your posts may become irrelevant after a period of time, which could result in complaints about outdated content. Additionally, if you’re dealing with time-sensitive content like news articles, it is probably best to keep the date and time visible for your visitors.
Now that we’ve discussed the reasons for removing the date from your WordPress posts, let’s look at how to do it. Here are four ways of hiding post dates in WordPress.
For our first method, we’ll be using the WordPress dashboard. This is the fastest way to hide post dates and it doesn’t require any coding knowledge. However, this method will set a universal rule across your website, so only use it if you want to remove the date from all of your posts.
Start by navigating to Settings > General
in your WordPress dashboard. Then, for Date Format
and Time Format
, select Custom
and leave the fields blank:
When you’re ready, click on Save Changes
. That’s it – the date and time have been removed from all of your WordPress posts.
Another easy way to remove the date from your blog posts is with custom CSS. However, your edits will only appear on the theme that you’re currently using. This means that if you change your theme in the future, you may have to remove the dates again. For this reason, you may want to consider creating a child theme.
Start by navigating to Appearance > Customize
in your WordPress dashboard. This will open the WordPress Customizer:
Here, select Additional CSS
and add the following code:
.entry-meta .entry-date.published {
display: none;
}
If that doesn’t work, try adding this CSS code instead:
.entry-meta {
display: none;
}
After publishing these changes, you should notice that the date and time have been removed from your blog posts. If you still see the date, try adding an tag after your code, like this:
.entry-meta .entry-date.published {
display: none ;
}
This rule will override your theme’s code to ensure that the date is not displayed. However, your theme might use a different class name to classify the date of your posts. In this case, you’ll have to manually find out what CSS class is assigned to your post date by using your browser inspection tool.
To do this, visit your blog on the front end, then right-click on the date and press Inspect
:
This will open a developer tools tab. Here, you can find out what CSS class is attributed to the date for your blog:
Next, copy the CSS class name and add the following code to your Additional CSS
settings in the theme customizer (as shown above):
.CLASS-NAME {
display:none;
}
Remember to replace CLASS-NAME
with the CSS class for your post dates. When you’re ready, save your changes.
You can also use the WordPress Theme Editor to remove the date and time from your posts. Again, this method will involve editing your theme’s code. Therefore, you may want to consider implementing a child theme to ensure that your changes remain even if you switch themes.
This method requires knowledge of HTML and it may not be applicable for every theme. Therefore, you may only want to use this technique if you could not get the custom CSS to work.
Start by navigating to Appearance > Theme Editor
in your WordPress dashboard. Next, click on content-single.php
in the Theme Files
section on the right-hand side of the editor. Then, find the code that corresponds to the date and remove it:
Finally, save your changes. The date should now be hidden from your posts.
Lastly, you have the option of removing the date and time with a WordPress plugin. This method is very straightforward and enables you to use custom settings, like removing the date from individual posts.
However, it will add an additional resource to your website, which can slow it down in the long run. Therefore, we recommend that you only use this method if you want a simple and effective solution that doesn’t require any coding.
We’ll be using the WP Meta and Date Remover plugin for this walkthrough. Once you’ve installed and activated the plugin on your site, go to Settings > WP Meta and Date Remover
in your dashboard. Here, you can configure the plugin’s settings:
If you don’t have a preference for whether the date is added to your back end code, we recommend enabling only the CSS based removal
option. If you want to remove the date from your front end and back end, we recommend saving the settings like the screenshot above.
Under Advanced Settings
, you’ll see the option to remove the date and time from individual posts. However, these features are only available if you upgrade to the premium version.
Removing the date from WordPress posts is an easy way to increase the overall lifespan of your blog. Readers won’t be discouraged from clicking on your posts, and your evergreen content will stay relevant for much longer.
In this post, we looked at four options for hiding the date and time on your blog posts:
Do you have any questions about how to remove the date from your WordPress posts? Let us know in the comments section below!
Are you looking to reset a WordPress site and start fresh? Reset a WordPress Site…
Ready to build your online presence? Choosing the right platform between Wix vs. WordPress is a crucial first…
Changing your favicon in WordPress is a small yet powerful way to improve your website’s…
Have you been searching for the easiest way to share PDF files directly on your…
Ever notice how professional websites seamlessly display social media icons in their headers? Adding social…
WordPress caching is an incredible tool for boosting your website’s performance. It helps deliver faster…
View Comments
As for the dates, it seems to me that it's good to set or a visible date of updating the page, not publication. Or remove the date altogether if you're writing about things that don't get old. Like a recipe for a cake, planting carrots, etc. Google knows perfectly well when a given entry came to it for the first time.