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?
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?
OK, I guess that is the solution. This can be marked as resolved.
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?
I take it that's a no then!
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.
You must be logged in to reply to this topic.
Subscribe to get early access to new themes, discounts and brief updates about what's new with StudioPress!