[wp-trac] [WordPress Trac] #34170: Add form class argument to comment_form()
WordPress Trac
noreply at wordpress.org
Tue Oct 6 16:01:50 UTC 2015
#34170: Add form class argument to comment_form()
-------------------------+-----------------------------
Reporter: flixos90 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version:
Severity: normal | Keywords:
Focuses: template |
-------------------------+-----------------------------
When using the `comment_form()` function, it is currently not possible to
adjust the class of the form. ID can be adjusted, and for example the
submit's ID and class can also be adjusted. So I thought it would be
straightforward to add the same for the form tag itself.
Use-case: I'm using a theme based on Bootstrap, and I would like to have a
horizontal comment form for which I need to apply a class 'form-
horizontal' to the form tag. Right now I can only do that by outputting
the whole form manually, including all the actions and filters which is a
pain to manage when I would rather just create markup. I'd much rather use
the built-in `comment_form()` function instead and only adjust the
arguments there.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34170>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list