Opened 11 years ago
Closed 9 years 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: |
Description
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)
Change History (8)
#2
@
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
@
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: http://www.screencast.com/t/1jxqdIIFb
Patch for the
comment_field()
argument, and example patch showing usage in Twenty Thirteen.