• Hi, I’m a total newbie here. My website is www dot real constipation remedies dot com … I just would like to know how to delete the “date” from all of the comments in my posts? I’m using a WooTheme right now and I found my Comment template…here it is:
    THANKS!
    PAUL

    [ Commercial theme code redacted ]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi Paul,

    To remove date you have to edit “custom_comment” function. This may be in theme’s function.php file or “includes/theme-comments.php” (if available).

    Following line is calling that function:

    wp_list_comments( array( 'callback' => 'custom_comment', 'type' => 'comment', 'avatar_size' => 40 ) );

    Thread Starter paulmc001

    (@paulmc001)

    Hi Frizax,

    Thanks your help and reply!

    Could you (or someone else) inform me what line I need to replace/fix/change?

    Thanks

    Here is my “Themes Function.php” and my “Theme Comments.php”

    Themes Function:

    [ Commercial theme code redacted ]

    Just comment the following lines from Theme Comments:

    <span class="date"><?php echo get_comment_date(get_option( 'date_format' )) ?> <?php _e('at', 'woothemes'); ?> <?php echo get_comment_time(get_option( 'time_format' )); ?></span>
    <span class="date"><?php echo get_comment_date( get_option( 'date_format' ) ); ?></span>
    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @paulmc001? Please do not post Wootheme’s PHP wholesale like that.

    You can get support for your commercial theme at their site.

    https://www.woothemes.com/support/

    Thread Starter paulmc001

    (@paulmc001)

    Jan, Sorry for the trouble I caused!

    Frizax, what do you mean when you say: Just “comment” the following lines from Theme Comments?

    I’m a total newbie, I’m sorry for misunderstanding you.

    Do you mean I need to alter the Theme Comment?

    Thanks for your time and help. Paul

    Hi Paul,

    Just remove the following lines from Theme Comments file.

    <span class="date"><?php echo get_comment_date(get_option( 'date_format' )) ?> <?php _e('at', 'woothemes'); ?> <?php echo get_comment_time(get_option( 'time_format' )); ?></span>

    and

    <span class="date"><?php echo get_comment_date( get_option( 'date_format' ) ); ?></span>
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Removing Dates From Comments’ is closed to new replies.