Hi there!
First, let us worry about the structure of your HTML, shall we? If I understand correctly, you want to create your own markup for the comment list as well as the comment form? I say this only because you have one comment and you also have the inputs in the markup. If this is correct there are two things that you are dealing with on this. The first one is the use of wp_list_comments(). The second ( which deals with the comment form ) is using comment_form().
For the first hurdle, if you wanted to create your comment listing you can use the wp_list_comments() callback argument. In the comments file you would have something like:
wp_list_comments( array( 'callback' => 'my_cool_comment_list' ) );
Then in your functions file of the theme you would have something like:
function my_cool_comment_list(){
// HTML markup for list
}
Then for the comment_form() you can use a filter for that as well:
https://codex.wordpress.org/Function_Reference/comment_form
Sorry, I would love to post some sample code but I have to get back to work. Apparently they want people to be active when you come back from your lunch break.
Hope that does give you a little more information and help you out. If not, please don’t hesitate to ask!
(@mrex778)
10 years, 3 months ago
Hi
I have problem with comments.php file. The problem is that I can’t make my own style π
so here’s comment style that I want:
Now I don’t know how to make these on comments.php file also I tried to copy other comments.php file with their style but again I can’t find out how does it work and I can’t use this code:
And when I delete this part, the comments won’t work anymore.
….. Plz help me