Hello, tell me please what code to write in the child theme to delete the date from the comments?

Hello, tell me please what code to write in the child theme to delete the date from the comments?

Hi there,
Please try this code in the custom CSS:
.x-comment-header div {
display: none;
}
Hope this helps.
It is necessary to remove from the code.

Hello @NYC-Brooklyn,
This is getting into custom development, which is outside the scope of support we can offer. That said, we could give you some advice that may help get you started believing that it would be your responsibility to implement. Please note that custom code can present unexpected outcomes in future and it would be your responsibility to fix the same.
Before proceeding please setup child theme. And then add following code in child theme function.php file:
if ( ! function_exists( 'x_integrity_comment' ) ) :
function x_integrity_comment( $comment, $args, $depth ) {
$GLOBALS['comment'] = $comment;
switch ( $comment->comment_type ) :
case 'pingback' : // 1
case 'trackback' : // 1
?>
<li <?php comment_class(); ?> id="comment-<?php comment_ID(); ?>">
<p><?php _e( 'Pingback:', '__x__' ); ?> <?php comment_author_link(); ?> <?php edit_comment_link( __( '(Edit)', '__x__' ), '<span class="edit-link">', '</span>' ); ?></p>
<?php
break;
default : // 2
GLOBAL $post;
if ( X_WOOCOMMERCE_IS_ACTIVE ) :
$rating = esc_attr( get_comment_meta( $GLOBALS['comment']->comment_ID, 'rating', true ) );
endif;
$avatar_variation = ( x_is_product() ) ? ' x-img-thumbnail' : '';
?>
<li id="li-comment-<?php comment_ID(); ?>" itemprop="review" itemscope itemtype="http://schema.org/Review" <?php comment_class(); ?>>
<?php
printf( '<div class="x-comment-img">%1$s %2$s</div>',
'<span class="avatar-wrap cf' . $avatar_variation . '">' . get_avatar( $comment, 120 ) . '</span>',
( $comment->user_id === $post->post_author ) ? '<span class="bypostauthor">' . __( 'Post<br>Author', '__x__' ) . '</span>' : ''
);
?>
<article id="comment-<?php comment_ID(); ?>" class="comment">
<header class="x-comment-header">
<?php
printf( '<cite class="x-comment-author" itemprop="author">%1$s</cite>',
get_comment_author_link()
);
printf( '<div><a href="%1$s" class="x-comment-time"></a></div>',
esc_url( get_comment_link( $comment->comment_ID ) ),
get_comment_time( 'c' ),
sprintf( __( '%1$s at %2$s', '__x__' ),
get_comment_time()
)
);
edit_comment_link( __( '<i class="x-icon-edit" data-x-icon=""></i> Edit', '__x__' ) );
?>
<?php if ( x_is_product() && get_option('woocommerce_enable_review_rating') == 'yes' ) : ?>
<div class="star-rating-container">
<div itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating" class="star-rating" title="<?php echo sprintf( __( 'Rated %d out of 5', '__x__' ), $rating ) ?>">
<span style="width:<?php echo ( intval( get_comment_meta( $GLOBALS['comment']->comment_ID, 'rating', true ) ) / 5 ) * 100; ?>%"><strong itemprop="ratingValue"><?php echo intval( get_comment_meta( $GLOBALS['comment']->comment_ID, 'rating', true ) ); ?></strong> <?php _e( 'out of 5', '__x__' ); ?></span>
</div>
</div>
<?php endif; ?>
</header>
<?php if ( '0' == $comment->comment_approved ) : ?>
<p class="x-comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', '__x__' ); ?></p>
<?php endif; ?>
<section class="x-comment-content" itemprop="description">
<?php comment_text(); ?>
</section>
<?php if ( ! x_is_product() ) : ?>
<div class="x-reply">
<?php comment_reply_link( array_merge( $args, array( 'reply_text' => __( 'Reply <span class="comment-reply-link-after"><i class="x-icon-reply" data-x-icon=""></i></span>', '__x__' ), 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
</div>
<?php endif; ?>
</article>
<?php
break;
endswitch;
}
endif;
Thanks.
thank you mr. prashant i was also looking for this information.
while there is a simpler way of hiding comment date links using css “display:none;”
but your method removes that php/sql querries altogather. hence more beneficial for memory management.

Glad to hear it’s sorted.
Cheers!