Hi guys, just wondering if there is a way to change the HTML of a comment.
I know that I can style them just using CSS but what if I want the name of the author at the end of the comment body.
I look through the templates folder but I couldn’t find more than his line that loads the comments:
<?php wp_list_comments(array('style' => 'ol', 'short_ping' => true)); ?>
At the end of October we switched to using core’s comment list template, see https://github.com/roots/roots/commit/0c1ae408e0f9d808b5f30c0e17839cebbe3ea801
You can edit your
wp_list_comments function to call a custom walker like we used to, and then your custom walker would have your preferred markup.
Thanks Ben, reversing the change I was able to bring the custom markup back
Where’s the best place to put a custom nav walker?
Would you recommend creating a lib/comments.php file like it used to be, or is there a better, existing, spot for it? init.php?