Title: Class on submit not applying
Last modified: August 22, 2016

---

# Class on submit not applying

 *  Resolved [kittentaboo](https://wordpress.org/support/users/kittentaboo/)
 * (@kittentaboo)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/class-on-submit-not-applying/)
 * I’m trying to apply classes to my Submit buttons in Contact Form 7, but they 
   don’t seem to be taking. Here’s a screenshot of what’s in my form:
 * [http://www.kitacreative.com/hosting/ss1.png](http://www.kitacreative.com/hosting/ss1.png)
 * Here’s a screenshot of the output:
 * [http://www.kitacreative.com/hosting/ss2.png](http://www.kitacreative.com/hosting/ss2.png)
 * The classes btn and btn-primary are not being applied to the Submit. Does anyone
   know what might be going on here? I successfully applied styles to the text inputs
   but not the buttons.
 * Thanks in advance!
 * [https://wordpress.org/plugins/contact-form-7/](https://wordpress.org/plugins/contact-form-7/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Neil Murray](https://wordpress.org/support/users/buzztone/)
 * (@buzztone)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/class-on-submit-not-applying/#post-5870998)
 * Could be CSS Specificity issue – see [CSS Specificity: Things You Should Know](http://www.smashingmagazine.com/2007/07/27/css-specificity-things-you-should-know/).
 * Include a link to your Contact Form 7 form so others can examine your form in
   detail using Firebug or Chrome Dev Tools.
 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/class-on-submit-not-applying/#post-5871051)
 * The [submit] tag is in the wrong format. See [Submit Button](http://contactform7.com/submit-button/)
 *  Thread Starter [kittentaboo](https://wordpress.org/support/users/kittentaboo/)
 * (@kittentaboo)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/class-on-submit-not-applying/#post-5871111)
 * Ah, so specific. Putting class before the value fixed it.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Class on submit not applying’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

 * [class](https://wordpress.org/support/topic-tag/class/)
 * [send](https://wordpress.org/support/topic-tag/send/)
 * [submit](https://wordpress.org/support/topic-tag/submit/)

 * 3 replies
 * 3 participants
 * Last reply from: [kittentaboo](https://wordpress.org/support/users/kittentaboo/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/class-on-submit-not-applying/#post-5871111)
 * Status: resolved