WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way I can edit / change the layout of the comments form (leave a reply form) in the TwentyEleven theme? I want to put the textarea on top and I can change the styles via css but physically moving the forms is where I'm having trouble. I'm not sure where to find the code for it.

tl;dr Where's the comments form code?

share|improve this question
up vote 4 down vote accepted

The comments template is added to template files via the comments_template() template tag.

The comments_template() template tag includes the comments.php template-part file.

The comments.php template-part file includes the comment-reply form via the comment_form() template tag. Refer to the Codex (linked) for detailed instructions for modifying the content and output of comment_form().

share|improve this answer
I looked at that and it doesn't seem to give me access to just move around the inputs. From the looks of it I would have to create the form from scratch :/ – Howdy_McGee Jan 18 '12 at 17:46
You have complete control over the form fields, so you can simply re-order them in the fields array. – Chip Bennett Jan 18 '12 at 18:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.