IT ENGLISH BOARD

How to Remove the Date from Your WordPress Posts

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

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
33
Remove Powered by WordPress in 3 Easy Steps (2)
author | 2019.07.05 | Votes 0 | Views 12628
author 2019.07.05 0 12628
32
Fix: The System Administrator Has Set Policies to Prevent This Installation
author | 2019.07.03 | Votes 0 | Views 1448
author 2019.07.03 0 1448
31
Why is this preventing me installing an MSI: The System Administrator has set policies to prevent this installation (7)
author | 2019.07.03 | Votes 0 | Views 1683
author 2019.07.03 0 1683
30
Child Themes
author | 2019.06.29 | Votes 0 | Views 1397
author 2019.06.29 0 1397
29
My computer is running slow, what steps can I do to fix it?
author | 2019.06.29 | Votes 0 | Views 1361
author 2019.06.29 0 1361
28
Nighthawk M1 port forwarding not working (8)
author | 2019.06.27 | Votes 0 | Views 3694
author 2019.06.27 0 3694
27
Plugged in, not charging problem, Windows 10
author | 2019.06.17 | Votes 0 | Views 1417
author 2019.06.17 0 1417
26
How to fix a Windows 10 laptop that's plugged in but not charging - Cnet
author | 2019.06.17 | Votes 0 | Views 1464
author 2019.06.17 0 1464
25
WordPress. How to hide time and date from the post page
author | 2019.06.10 | Votes 0 | Views 1444
author 2019.06.10 0 1444
24
How to Remove the Date from Your WordPress Posts
author | 2019.06.10 | Votes 0 | Views 1429
author 2019.06.10 0 1429
New