Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#25486 closed enhancement (wontfix)

Request: Add default class to comment submit button

Reported by: henrywright Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.6.1
Component: General Keywords: 2nd-opinion ui-feedback
Focuses: Cc:


The comments form defaults can be filtered using


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)

#1 @c4xpl0siv3
8 years ago

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 */  }

#2 @c4xpl0siv3
8 years ago

  • Keywords 2nd-opinion ui-feedback added
  • Resolution set to wontfix
  • Status changed from new to closed

#3 @henrywright
8 years ago


Thanks for your reply.

I know the button can be targeted in that way. It's even easier to target the button because it already has an ID attribute. However, I was asking for a class attribute to be added.

I can submit a patch if you guys give me the go ahead.

#4 @markoheijnen
8 years ago

  • Milestone Awaiting Review deleted

Clearing out the milestones for closed tickets on Awaiting Review

Note: See TracTickets for help on using tickets.