This topic has 1 reply, 2 voices, and was last updated 9 years by sharmstr.

  • Author
  • #94425
     raniele
    Participant

    Hello everybody

    I’m trying to change the way comment_date is displayed, that is from X minutes ago to actual timestamp.

    However I don’t seem able to find the file from which the comment_date function is called, as comments.php shows none. So far my only clue is the comment-date span revealed by CSS but it is not of much help.

    Thank in advance for your suggestions

    #94438
     sharmstr
    Moderator

    Copy the kleo_custom_comments function from /kleo/functions.php (around line 675) to your child theme’s functions.php file.

    You’ll see the comment date is using

    COPY CODE
    
     human_time_diff( get_comment_time('U'), current_time('timestamp') ) . ' ' . __("ago", "kleo_framework")
    

    Change that to whatever you want.
    http://hitchhackerguide.com/2011/02/12/get_comment_time/

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?