I am using wp_list_comments() function to draw the comment list.But,I want change many things in the form like class,styles, reply link and etc…
so please help me, How can i customize the comment listing function
Thanks
I am using wp_list_comments() function to draw the comment list.But,I want change many things in the form like class,styles, reply link and etc…
so please help me, How can i customize the comment listing function
Thanks
You must be logged in to post a comment.
The
wp_list_comments()
call accepts a callback argument, in which you can define the specifc comment-list markup that you want. I would suggest taking a look at how TwentyTen handles thewp_list_comments()
callback.You could just take a look at the Codex Page for wp_list_comments which has some example code for customising comment listings.
You will see from that page that you can add a callback function to
wp_list_comments
which is normally used to customise how comments are listedwp_list_comments()
usesWalker_Comment
class (that extends genericWalker
) to generate output.If you need extensive customization you should extend
Walker_Comment
with your own class and pass instance of it aswalker
argument to the function.Comment is Easily Customaziable.
for example: code for cancel the reply link
if you want custom the Text like Reply means Replace Text…
Text to display as a link. If empty, it will return the default: ‘Click here to cancel reply.’it should be work.
I’d look at using comment_form();. It will give you a default layout of a comment form but you can pass
$args
to it to modify each section.