Tag Info

New answers tagged


You should consider hooking into the comment_class() and post_class() filters, if your theme supports it. Using the comment_class filter: We can add the following filter: /** * Add a custom comment class, based on a given comment author's user meta field. * * @see http://wordpress.stackexchange.com/a/170443/26350 */ add_filter( 'comment_class', ...


The answer is that you can't do it without using comments.php. Since WordPress 2.7, comments.php is important to display full features and customizable comments rest if you still want to use <?php comments_template(); ?> then you can edit anything in it except CSS.

Top 50 recent answers are included