IT ENGLISH BOARD

How to Remove the Date from Your WordPress Posts

WordPress
Author
author
Date
2019-06-10 12:30
Views
1122

How to Remove the Date from Your WordPress Posts





If the content on your site isn’t time-oriented, you may want to remove the dates from your posts since this information isn’t relevant.

Removing the date may also be helpful if you don’t regularly update your site – posts with older dates can give the impression that your content is outdated.

Removing the Date With a Plugin

The easiest way to remove the date is with the WP Post Date Remover.

While this plugin hasn’t been updated since 2012, I tested it and it still works fine.

There are no options with this plugin. Just install and activate it and it will remove the dates from your homepage, pages and posts.

The only problem with this plugin is that for newer themes like Twenty Fourteen and Twenty Thirteen it doesn’t remove the clock icon. If this is an issue with your theme, you may want to try implementing the code below.

Removing the Date With Code

It’s quick and easy to remove the date from your posts. Simply create a child theme and add the following snippet to your newly created stylesheet:

{code type=php}
.entry-date {
display: none;
}

This code will remove both the date and the clock icon that displays next to the date on themes such as Twenty Fourteen and Twenty Thirteen.

I tested this code with all the default WordPress themes. While it completely removes the dates on all themes, it doesn’t remove words such as “Posted on”, which is usually published before the date on the Twenty Ten and Twenty Eleven themes.

To remove the extra words for Twenty Eleven, click on Editor in the admin sidebar and open functions.php. Search the text for “Posted on” and you’ll find this code:
Twenty Eleven code

Remove the associated text in your functions.php file to completely remove the date from your posts.
Delete “Posted on.” You may also want to capitalize “By” so it looks correct on the front-end.

Total Reply 0

Total 104
Number Title Author Date Votes Views
103
Join a Microsoft Teams meeting
author | 2020.09.22 | Votes 0 | Views 2014
author 2020.09.22 0 2014
102
How to delete songs and albums from your Google Play Music library
author | 2020.09.19 | Votes 0 | Views 2183
author 2020.09.19 0 2183
101
Watch Prime Video on Chromecast
author | 2020.09.14 | Votes 0 | Views 1956
author 2020.09.14 0 1956
100
How to Fix the Win­dows 10 We Could­n’t Con­nect to the Update Ser­vice Issue (2)
author | 2020.09.09 | Votes 0 | Views 2682
author 2020.09.09 0 2682
99
IONOS Joomla! Standard Installation
author | 2020.09.02 | Votes 0 | Views 1157
author 2020.09.02 0 1157
98
How to improve the life of a Battery: (1)
author | 2020.08.25 | Votes 0 | Views 1171
author 2020.08.25 0 1171
97
Laptop battery not charging
author | 2020.08.21 | Votes 0 | Views 1479
author 2020.08.21 0 1479
96
Plugged in, not charging (1)
author | 2020.08.21 | Votes 0 | Views 1295
author 2020.08.21 0 1295
95
How to add reCaptcha plugin to a custom form on my WordPress website?
author | 2020.08.13 | Votes 0 | Views 1432
author 2020.08.13 0 1432
94
I can't log in to the WordPress admin dashboard after installing and activating Limit Attempts plugin
author | 2020.08.13 | Votes 0 | Views 1110
author 2020.08.13 0 1110
New