Make WordPress Core

Opened 2 years ago

Closed 4 days ago

#24064 closed enhancement (duplicate)

Allow comment_form() to display the comment field first

Reported by: 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 2 years ago.
24064.twentythirteen.patch (520 bytes) - added by johnbillion 2 years ago.

Download all attachments as: .zip

Change History (8)

@johnbillion2 years ago

comment:1 @johnbillion2 years ago

  • Keywords has-patch added

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

comment:2 @toscho2 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.

comment:3 @sethshoultes2 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: http://www.screencast.com/t/1jxqdIIFb

comment:4 @nacin20 months ago

  • Component changed from Template to Comments
  • Focuses template added

comment:5 @chriscct76 days ago

  • Keywords needs-docs added

comment:6 @johnbillion4 days 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.