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 7 replies, has 2 voices, and was last updated by  dave_s 1 year ago.

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

    theMikeD
    Participant
    Post count: 20

    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 1 year, 5 months ago by  theMikeD.
    • This topic was modified 1 year, 5 months ago by  theMikeD.
    • This topic was modified 1 year, 5 months ago by  theMikeD.
    • This topic was modified 1 year, 5 months ago by  theMikeD.
    • This topic was modified 1 year, 5 months ago by  theMikeD.
    • This topic was modified 1 year, 5 months ago by  theMikeD.
    #20024

    theMikeD
    Participant
    Post count: 20

    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: 20

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

    #48688

    dave_s
    Participant
    Post count: 26

    I’ve been trying to do the same with regard to the ‘Says:’ element.

    Used the snippet to remove ‘says’ but still left with the colon.

    Is it possible to remove the colon or is Mikes method the only solution?

    #48798

    dave_s
    Participant
    Post count: 26

    Anyone?

    #48940

    dave_s
    Participant
    Post count: 26

    I take it that’s a no then!

    #48961

    theMikeD
    Participant
    Post count: 20

    Dave, I never found a way. I had to toss the entire thing and re-do it for the sake of one colon. Dumb, but there you are.

    #49046

    dave_s
    Participant
    Post count: 26

    Thanks Mike, appreciate the reply.

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

You must be logged in to reply to this topic.