Some of that can be altered by supplying arguments to the function call. Reviewing the source code is probably the best way to see what can be done.
If that still doesn’t do it, define your own form on your comments template and apply_filters() the same way as the core version for the fields.
Thread Starter
Luke
(@lukejanicke)
I “filtered out” every argument (made them all empty strings). So the code above is residual code from the WordPress core. I confirmed that by going into wp-includes/comment-template.php.
Strangely, the text Click here to cancel reply. is a hard-coded backup. None of the other arguments have hard-coded backups. In the end, I just accepted the extraneous HTML, de-styled it in my theme and added my custom code using the arguments/filters.
(@lukejanicke)
12 years, 4 months ago
Using
comment_form()you can customise most of the comment form using arguments or filters.But what you can’t customise is the HTML that wraps the whole comment form.
Namely…
And this is the ONLY bit I want to change.
Are there some arguments or filters I don’t know about?
Maybe I just have to code the comment form manually…