• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2785

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Try Premium
  • Log in

Remove Comment Time or Time and Date

These 2 code snippets enable you to remove either the comment time or the comment date & time from each individual comment in the comments list. There are different ways to do this using either CSS or PHP code. The PHP code only works in Genesis however you can use CSS in any theme to hide the comments meta data.

remove-comment-meta

Video Demo

The video shows you how PHP code removes the time from the end of the date in the comment author meta.

CSS Method

Simply inspect the date and time to find the class your theme uses like this:

.comment-meta {
    display: none;
}

Note: The CSS method will not remove the data and time from the HTML output in the source code.

Here’s the PHP code for members:

Register for full access

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags
 

Loading Comments...
 

You must be logged in to post a comment.