[wp-trac] [WordPress Trac] #23851: Can we get some classes on the comment form output?
WordPress Trac
noreply at wordpress.org
Sun Jun 23 08:55:50 UTC 2013
#23851: Can we get some classes on the comment form output?
-------------------------+------------------------------
Reporter: nathanrice | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+------------------------------
Comment (by chrisvanpatten):
Argh - I said "class_id", I meant `id_form`!
Basically, I don't see why you can't specify a class for the `<form>` tag,
although the same goes for any other bit of the `comment_form`, I suppose.
`wp_nav_menu` lets you specify classes (and you can hack it up nicely with
walkers to target any element) but `comment_form` doesn't have those
options. A bit frustrating to lose that control, especially when
frameworks like Bootstrap (and others) specify classes they want you to
use directly on your `<form>` elements. Wrapper `div`s work (most of the
time), but they're gratuitous markup.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23851#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list