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

WP SITES

2665

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

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

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems