How to I control the comment box items?

Community Forums Forums Design Tips and Tricks How to I control the comment box items?

This topic is: not resolved

Tagged: 

This topic contains 2 replies, has 1 voice, and was last updated by  theMikeD 2 months, 4 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #20019

    theMikeD
    Participant
    Post count: 19

    Hi there,

    I’d like to change a few things about the comment box and I can’t determine the correct way to do it. Here are the changes I’d like to make.

    1. The comment author is followed by “says:”. I found code to remove the ”says” part but the colon is still there. I see in genesis/lib/structure/comments.php that it appears that it is hardcoded. The offending code is on line 184. I don’t see that any of it is wrapped in a filter or a hook. Basically I just want it to be “Name” nothing else.

    2. I’d like to change the format of the date, but again I see no filters or hooks. This time check out line 188. What I want is just the date, no time.

    This would take 1 minute if I edit the genesis code directly, butI’d rather not do that! Can anyone set me straight here?

    …Mike

    • This topic was modified 3 months, 1 week ago by  theMikeD.
    • This topic was modified 3 months, 1 week ago by  theMikeD.
    • This topic was modified 3 months, 1 week ago by  theMikeD.
    • This topic was modified 3 months, 1 week ago by  theMikeD.
    • This topic was modified 3 months, 1 week ago by  theMikeD.
    • This topic was modified 3 months, 1 week ago by  theMikeD.
    #20024

    theMikeD
    Participant
    Post count: 19

    Maybe the only way is to copy out the genesis_comment_callback() function into my own functions.php, rename it, modify it to my needs, and then run a filter on genesis_comment_list_args to replace the callback entry with my custom one? That seems a bit heavy handed, but perhaps thats the only way. Is that considered correct wrt genesis code practice?

    #22438

    theMikeD
    Participant
    Post count: 19

    OK, I guess that is the solution. This can be marked as resolved.

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

You must be logged in to reply to this topic.