Make WordPress Core

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#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)

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

  • Keywords 2nd-opinion ui-feedback added
  • Resolutionwontfix
  • Status newclosed

#3 @henrywright
13 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
13 years ago

  • Milestone Awaiting Review

Clearing out the milestones for closed tickets on Awaiting Review

Note: See TracTickets for help on using tickets.