Is there a way to edit/change the HTML outputted by the function comment_form()? I dont like the HTML thats created by default for my project.
Namely, what I dont like is this:
<label for="author">Name</label><span class="required">*</span>
I would much prefer to have this:
<label for="author">Name<span class="required">*</span></label>
Ive been looking around the files of Twenty Eleven, but I couldnt find it.
Is there a comments.php file in your current theme? If so, you should be able to modify that as needed and the changes will be reflected when
comment_form()is called.Alternatively, you can pass the
comment_form()with$args. For a more in depth look at passing$argsjust take a look at the Codex. In regards to styling the form, take a look at The Comments Form under Styling Theme Forms in the Codex.