IT ENGLISH BOARD

How to Remove the Date from Your WordPress Posts

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

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 13088
author 2019.07.05 0 13088
32
Fix: The System Administrator Has Set Policies to Prevent This Installation
author | 2019.07.03 | Votes 0 | Views 1700
author 2019.07.03 0 1700
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 1910
author 2019.07.03 0 1910
30
Child Themes
author | 2019.06.29 | Votes 0 | Views 1595
author 2019.06.29 0 1595
29
My computer is running slow, what steps can I do to fix it?
author | 2019.06.29 | Votes 0 | Views 1607
author 2019.06.29 0 1607
28
Nighthawk M1 port forwarding not working (8)
author | 2019.06.27 | Votes 0 | Views 3963
author 2019.06.27 0 3963
27
Plugged in, not charging problem, Windows 10
author | 2019.06.17 | Votes 0 | Views 1640
author 2019.06.17 0 1640
26
How to fix a Windows 10 laptop that's plugged in but not charging - Cnet
author | 2019.06.17 | Votes 0 | Views 1689
author 2019.06.17 0 1689
25
WordPress. How to hide time and date from the post page
author | 2019.06.10 | Votes 0 | Views 1677
author 2019.06.10 0 1677
24
How to Remove the Date from Your WordPress Posts
author | 2019.06.10 | Votes 0 | Views 1666
author 2019.06.10 0 1666
New