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
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 the wp_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 listed
wp_list_comments()
uses Walker_Comment
class (that extends generic Walker
) to generate output.
If you need extensive customization you should extend Walker_Comment
with your own class and pass instance of it as walker
argument to the function.
Comment is Easily Customaziable. for example: code for cancel the reply link
<?php cancel_comment_reply_link(); ?>
if you want custom the Text like Reply means Replace Text...
<?php cancel_comment_reply_link(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.