Remove Date and Time from WordPress Comments

Are you looking for how you can Remove Date and Time from WordPress Comments section? some bloggers and websites owner doesn’t want to show the date and time of comments on their WordPress website. In this article, we are going to explain to you how easily you can Remove Date and Time from WordPress Comments to make your site look clean and evergreen for other users.

Why Remove Date and Time from WordPress Comments?

Some blogger believes that if they remove dates from the WordPress will enhance the Search Engine Ranking. Just because there is no sign of outdated content.

But we don’t think so because we think that it will be the problematic situation if delete the dates.

But some causes are acceptable for remove the date and time from other parts of your WordPress website, like the comments. Remove Date and Time from WordPress Comments will hiding the information which will become a cause of outdated or nonupdated mentality for your content.

Remove Date and Time from WordPress Comments

For this purpose, you need to edit your WordPress Theme’s functions.php file, and copy the below code in that.

After this, you have to visit your WordPress website pages and posts where any comment is located to just verified that, above code is working fine and you are not viewing any date and time of the comment.

Remove Date and Time from WordPress Comments

Instead, you will find the “at” or “posted on” preposition word.

To remove these kinds of prepositional words you just have to inspect where they are located in code. For this, you have to right-click on them and select inspect element.

Remove Date and Time from WordPress Comments

Now you just have to remember the CSS Class which is used to locate this word in your web pages.

Now just add the below code with the class name to hide that class, in your custom CSS or StyleSheet. In this case, it’s “comment-time”.

After saving the CSS files you can visit your WordPress website again to verify the changes.

Remove Date and Time from WordPress Comments

That’s all from this tutorial to Remove Date and Time from WordPress Comments. On the note, you must know that it will not affect your database and any entry of date and time which is stored in them.

But if you want to show date and time again for the comments, you just have to remove the code and everything start working fine. If this article will help you then don’t forget to share it with your friends.

SHARE