You need to look at the fields and $args for comment_form().
Thread Starter
iacchi
(@iacchi)
I read that already and not only the page on the codex, I’ve googled around a bit, too.
If you look at that page, there’s no reference to a parameter to change the very beginning of the form, except the text inside the <h3> tag which should be set using “title_reply”. Point is, I want to change <h3> into <h2>, not just the text inside it.
Thread Starter
iacchi
(@iacchi)
No, that doesn’t make it. You can use that to change the text inside <h3>, not the tag itself (if you look at the examples, the funcion is called inside the <h3> tag), and if I well understood you can either use that function if you want to write the code for the comment form yourself, or you can use comment_form() to generate the comment form; you can’t use one inside the other, and it’s no use anyway, since it can’t change the tag.
Either what I said is true, or I didn’t understand anything of what’s written in the codex, and I need an example.
(@iacchi)
14 years, 8 months ago
Hi everyone,
I’m writing a new theme and Iwant to use comment_form() to display the comment form, since it looks like the right thing to do for a modern theme.
The problem is, as far as I reached to find out, the code that this function outputs is not fully customisable. Just to make an example, I want to change the code at the beginning from
<div id="respond"><h3 id="reply-title">to
<div id="respond"><h2 id="reply-title">this is just an example (that I actually need). Is there a way to customise these aspects of the output, or to just write a new function to add in functions.php to completely replace the output of comment_form?