{"id":2347916,"date":"2011-10-14T15:39:40","date_gmt":"2011-10-14T15:39:40","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/fully-customise-comment-form-when-using-comment_form\/"},"modified":"2016-08-20T02:53:58","modified_gmt":"2016-08-20T02:53:58","slug":"fully-customise-comment-form-when-using-comment_form","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/fully-customise-comment-form-when-using-comment_form\/","title":{"rendered":"Fully customise comment form when using comment_form()"},"content":{"rendered":"<p>Hi everyone,<br \/>\nI&#8217;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.<br \/>\nThe 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<\/p>\n<p><code>&lt;div id=&quot;respond&quot;&gt;&lt;h3 id=&quot;reply-title&quot;&gt;<\/code><\/p>\n<p>to<\/p>\n<p><code>&lt;div id=&quot;respond&quot;&gt;&lt;h2 id=&quot;reply-title&quot;&gt;<\/code><\/p>\n<p>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?<\/p>\n","protected":false},"template":"","class_list":["post-2347916","topic","type-topic","status-closed","hentry","topic-tag-comment_form"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/2347916","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/2347916\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=2347916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}