我想定制评论表单的HTML输出。我一直在读
我一直在读how to alter some variables of the comment_form(). 前面的链接为使用该功能提供了一个很好的指南。
但我仍然无法更改表单的HTML输出。我想把一些字段包装在一个容器中。
对于旧版本的wordpress,可以在评论中随意更改。php函数,但这样做会破坏嵌套的注释,因此它不是一个选项。
是否可以更改此html输出?
谢谢
根据请求,再添加一点信息:)comment\\u form()的默认html输出为:
<p class="comment-form-author"><label for="author">Name</label> <span class="required">*</span><input id="author" name="author" type="text" value="" size="30" aria-required=\'true\' /></p>
<p class="comment-form-email"><label for="email">Email</label> <span class="required">*</span><input id="email" name="email" type="text" value="" size="30" aria-required=\'true\' /></p>
<p class="comment-form-url"><label for="url">Website</label><input id="url" name="url" type="text" value="" size="30" /></p>
我想将所有三段都封装在一个html元素(即DIV)中。