#25486 closed enhancement (wontfix)
Request: Add default class to comment submit button
| Reported by: | henrywright | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 3.6.1 |
| Severity: | normal | Keywords: | 2nd-opinion ui-feedback |
| Cc: | Focuses: |
Description
The comments form defaults can be filtered using
comment_form_defaults
However, there isn't currently a class on the button. Can you add a default class? I'd like to then filter the default class to add my own custom one.
My style sheet is already bloated so would prefer not style the button using the ID.
Thanks in advance
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
If you are using http://codex.wordpress.org/Function_Reference/comment_form and you are not customizing it's settings, or at least it's HTML tags, you should have paragraphs around most elements.
The submit button is wrapped inside a paragraph with class "form-submit", so you can easily style it using
.comment-respond .form-submit input[type='button'] { /** Your Styles */ }