WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 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:

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)

#1 @c4xpl0siv3
6 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
6 years ago

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

#3 @henrywright
6 years ago

@c4xpl0siv3

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
6 years ago

  • Milestone Awaiting Review deleted

Clearing out the milestones for closed tickets on Awaiting Review

Note: See TracTickets for help on using tickets.