[wp-trac] [WordPress Trac] #24626: Add a class to comment_form's <form> output
WordPress Trac
noreply at wordpress.org
Sun Jun 23 01:20:53 UTC 2013
#24626: Add a class to comment_form's <form> output
----------------------------+-----------------------------
Reporter: chrisvanpatten | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: trunk
Severity: minor | Keywords:
----------------------------+-----------------------------
It's a tad frustrating that you can't add a class to the `<form>` tag
that's generated in the `comment_form` function. I know you can wrap the
function in a `<div>` but it is gratuitous markup. Bootstrap (and I'm sure
other frameworks) suggest adding classes to `<form>` elements too, and
while they probably work by wrapping with a `<div>` as well, it is
frustrating you can't follow their recommendations exactly.
There have been a number of tickets about the ability to add classes to
the comment form's submit button—#20446, #15015, et al.—but none (that I
can find) focusing on the ability to add custom classes to the `<form>`
tag itself.
Thanks!
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24626>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list