Make WordPress Core

Opened 11 years ago

Closed 9 years ago

#24064 closed enhancement (duplicate)

Allow comment_form() to display the comment field first

Reported by: johnbillion's profile johnbillion Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.6
Component: Comments Keywords: has-patch ui-feedback needs-docs
Focuses: template Cc:


Many sites and many third-party comment system providers display the comment field before the name/email/URL fields in comment forms these days.

It would be nice to have any easy option to do this with the comment_form() function. Currently if you want to display the comment field first you'll have to avoid using comment_form() or you'll have to do some crazy CSS or jQuery trickery to move things around. Neither are optimal.

Attachments (2)

24064.patch (1.9 KB) - added by johnbillion 11 years ago.
24064.twentythirteen.patch (520 bytes) - added by johnbillion 11 years ago.

Download all attachments as: .zip

Change History (8)

11 years ago

#1 @johnbillion
11 years ago

  • Keywords has-patch added

Patch for the comment_field() argument, and example patch showing usage in Twenty Thirteen.

#2 @toscho
11 years ago

  • Cc info@… added

You can do that with PHP already, no need for JavaScript or CSS. But yes, an easier way would be useful.

#3 @sethshoultes
11 years ago

  • Keywords ui-feedback added

Tested the 24064.patch and 24064.twentythirteen.patch​ patches and they seem to be working well. However, if possible, you might want to add a little more margin to the top of the "Post Comment" button in the Twenty Thirteen theme. Screenshot:

#4 @nacin
10 years ago

  • Component changed from Template to Comments
  • Focuses template added

#5 @chriscct7
9 years ago

  • Keywords needs-docs added

#6 @johnbillion
9 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Not directly a dupe, but closing in favour of #29974.

Note: See TracTickets for help on using tickets.