Remove the date from WordPress Posts by adding code: Method2
Often, we don’t want to install a plugin for every small reason. Adding some codes in the theme files can also give you the result.
Though, it’s recommended to add code to your WordPress child theme only.
Because if you do so in the main WordPress theme, all the edits will vanish once the main theme is updated.
1. Navigate to the Theme Editor, Dashboard – Appearance – Editor.
2. In Stylesheet, custom CSS add the below code at the bottom of the page.
entry-date { display: none; }
And to see the changes reloading the page.
If it doesn’t appear, reload it after clearing the caches and cookies from your browser.
Yay, not more meta in your blog posts.
And if you have an evergreen blog with tons of blog posts, it is always recommended to keep updating.
On the other hand, it’s not easier to update it regularly. In such a scenario, you may only hide the date of your older posts, which can work automatically.
Feel free to share your thoughts below.
Navin Rao
Navin Rao always like to explore new things. His Blog QuestionCage covers the topics like WordPress Tricks, Google, Social Media, Blogging and SEO Tips which simplifies the whole blogging process. He loves to tweak things with WordPress and boost the loading speed of the website. know more About him
Articles: 198
3 Comments
Thanks for this tutorial Navin,
I like this plugin a lot, but my one gripe with it is that it removes links to taxonomie pages, (tags and categories).
I think that’s bad for SEO because those links build site relevance relative to the topic you’re targeting.
Hi Nikola,
Yeah, may be it removes the meta from the tags and categories as well. And more over I don’t think those taxanomies and breadcrubs are any more in the SEO club at all. Unless you keep those links for the User experiecne.
Although, I can’t see even any user follow those links to browser the site. instead interlinks and related posts works better. Hence, i have removed those too, as those categories and tags providing no more value and on the other hand breadcuumbs was looking bit ugly.
I prefer to use the last updated on format on my blog but sometimes for some posts it requires to remove the date all together.
Thanks for this tutorial Navin,
I like this plugin a lot, but my one gripe with it is that it removes links to taxonomie pages, (tags and categories).
I think that’s bad for SEO because those links build site relevance relative to the topic you’re targeting.
Hi Nikola,
Yeah, may be it removes the meta from the tags and categories as well. And more over I don’t think those taxanomies and breadcrubs are any more in the SEO club at all. Unless you keep those links for the User experiecne.
Although, I can’t see even any user follow those links to browser the site. instead interlinks and related posts works better. Hence, i have removed those too, as those categories and tags providing no more value and on the other hand breadcuumbs was looking bit ugly.
I prefer to use the last updated on format on my blog but sometimes for some posts it requires to remove the date all together.
Thanks for sharing the easiest way to do it.