WordPress by default has the functionality to display dates, author and category on all posts. This is also called post meta information or simply post metadata. Although it is good to keep this information displayed but sometimes bloggers want to hide it for certain reasons and there is no default solution to remove dates in WordPress posts.
It is recommended to check your theme settings first if there are any related options to disable date and author information.
In this article, we will see how to easily hide date post-meta information from WordPress posts. Before making any changes to your blog, it is always a good idea to backup WordPress database and files.
Once you are done with the backup, it’s time to see how to remove date from WordPress posts.
Hiding WordPress Post Date with a Plugin
We know the first option for beginners is always to use a plugin and that’s why we have kept this option first.
There are many WordPress plugins available to remove date and author from posts but we will discuss only three which worked for us.
- To remove date from posts in WordPress default themes like Twenty Seventeen, you can use WP Author, Date and Meta Remover. The plugin is very simple. Just install and activate and it will work out-of-the-box. No settings required.
- Another WordPress post plugin to hide date is WP Meta and Date Remover which claims to work on most of the themes available in the market including WordPress default themes.
- For us, the perfect solution to hide date and author infomation was a plugin SiteOrigin CSS. It is recommended to use this plugin if any of the above plugins didn’t work for you.
The plugin is not specially designed for hiding dates in WordPress posts but an overall solution to customize CSS of your WordPress theme. We will take advantage of this plugin by finding the div class which holds the date and author information and then hide it.
- Install and Activate the SiteOrigin CSS plugin. Settings will be available under WordPress dashboard Appearance > Custom CSS. See how to install a plugin in WordPress for help.
- Click the tiny Expand button on the far right hand side. Clicking the button will open your website’s preview.
- Click the date to know it’s div class. You can see in the image below, it’s .entry-meta. Your div class could be different depends upon the theme you are using.
- Now click the class name (.entry-meta). It will open it in the left hand column to edit it. Add display:none and click the Expand button again to exit preview mode.
Click Save CSS button at the bottom. It will effectively hide date and author information on WordPress front-end.
Manually Remove Date from WordPress Posts
If you want to dig deeper to see how to remove WordPress posts date manually then read along. You will be amazed to see how simple it is to do it even manually.
- Once you know the div class from the method above. Add the display:none code using WordPress default CSS editor available under Appearance > Customize > Additional CSS. It will do the same trick. You can deactivate or delete SiteOrigin plugin now. The code will still work.
The other more advanced way is to find div class manually.
- Using Chrome browser, right click on the date of your WordPress post and click Inspect.
- Look for the immediate div class name above the date information.
- Once you know the class name, add the following code (replacing with your own class name) in WordPress admin dashboard > Appearance > Customize > Additional CSS.
- The above CSS code to hide date and author information will work out-of-the-box.
The methods we discussed above will effectively hide date and author from WordPress posts and we hope you will find this article useful and working for your own blog.