• thedigger0

    (@thedigger0)


    Hi All,

    I know there are a few articles around on removing dates from the comment section of WordPress and I followed them. Add the following code to the Function.php section

    // Remove comment date
    function wpb_remove_comment_date($date, $d, $comment) {
    if ( !is_admin() ) {
    return;
    } else {
    return $date;
    }
    }
    add_filter( ‘get_comment_date’, ‘wpb_remove_comment_date’, 10, 3);

    // Remove comment time
    function wpb_remove_comment_time($date, $d, $comment) {
    if ( !is_admin() ) {
    return;
    } else {
    return $date;
    }
    }
    add_filter( ‘get_comment_time’, ‘wpb_remove_comment_time’, 10, 3);

    But this has not worked for me. Can anyone help me with this problem and give me step by step instructions.

    Thanks in advance.

    Rachel

Viewing 3 replies - 1 through 3 (of 3 total)
  • Matt

    (@madmattch)

    Maybe you can create a childtheme and remove it in the comment.php (depending on your theme).

    Cheers Matt

    • This reply was modified 7 years ago by Matt.
    CrouchingBruin

    (@crouchingbruin)

    Might be a lot easier to hide them using some CSS. Can you please post a link to a post that has comments?

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Moved to Fixing WordPress, this is not a Requests and Feedback topic.

    For Vantage theme support please ask in the correct forum.

    https://ww.wp.xz.cn/support/theme/vantage/#new-post

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Vantage – Remove dates in comment section’ is closed to new replies.