Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

1 Answer 1

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
1  
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

 
discard

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.