Opened 14 months ago

Last modified 13 months ago

#20446 new enhancement

Add comment form submit button class attribute

Reported by: bainternet Owned by:
Priority: normal Milestone: Awaiting Review
Component: Comments Version: 3.3.1
Severity: normal Keywords: has-patch needs-testing
Cc:

Description

The comment_form() is packed with filters all over the place to customize the from just the way you need, but one thing i find missing is a class on the submit input tag and if there was a class attribute then it should be filterable.

I know you can set the input ID and simply style based on the ID selector but when designing themes usually you have some kind of class defined for buttons, especially when using any of the html5/responsive theme frameworks and if the comment submit input had a class which was filterable then it would make our lives much easier.

Attachments (1)

comment_form.patch (1.4 KB) - added by bainternet 13 months ago.
patched comment_form function with submit class

Download all attachments as: .zip

Change History (5)

should be very simple , I'll upload a patch as soon as i get home.

patched comment_form function with submit class

  • Keywords has-patch 2nd-opinion needs-testing added

Added patch to handle the comment form submit input class
ex:

comment_form(array('class_submit'=>'myclass'));
  • Keywords 2nd-opinion removed
  • Version set to 3.3.1

Related: #15015 (patch there provides a solution that allows adding 'class' attribute to comment form submit button)

Note: See TracTickets for help on using tickets.