Is there a way to add a custom class to comments that is a "reply comment" of a parent comment ?
*Note: my template use 'max_depth' => '1'.
Output code:
<div>
<div class="comment-1"></div> // comment 1
<div class="comment-2"></div> // reply 1
<div class="comment-3"></a functiondiv> // reply 2
<div class="comment-4"> // comment 2
</div>
I need a class for replies like:
<div>
<div class="comment-1"></div> // comment 1
<div class="comment-2" class="reply"></div> // reply 1
<div class="comment-3" class="reply"></div> // reply 2
<div class="comment-4"> // comment 2
</div>
A filter or a function ?
Edit:
Code that loops the comments is:
In
comments.php
wp_list_comments(array('style' => 'div', 'type' => 'comment', 'max_depth' => '1' , 'callback' => 'comments_template'));In
functions.php
http://pastebin.com/4T5DiZY4