Title: Problem with adding css class to buttons.
Last modified: March 25, 2021

---

# Problem with adding css class to buttons.

 *  Resolved [alygraphy](https://wordpress.org/support/users/alygraphy/)
 * (@alygraphy)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/problem-with-adding-css-class-to-buttons/)
 * Hello guys,
 * Just wondering what’s the issue why the form doesn’t work whenever I put CSS 
   Class that acts as a trigger
 * So we’re doing A/B Split Testing using Split Hero. To measure conversion rate,
   I need to add a CSS class. And I added it but whenever I do that, the form doesn’t
   work. Instead, it redirects to example.com/null
 * Any suggestions?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblem-with-adding-css-class-to-buttons%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [jpowersdev](https://wordpress.org/support/users/jpowersdev/)
 * (@jpowersdev)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/problem-with-adding-css-class-to-buttons/#post-14234862)
 * Hi [@alygraphy](https://wordpress.org/support/users/alygraphy/),
 * Unfortunately, I was not able to reproduce the issue. I tried adding a random
   additional class to the form using my browser dev tools, and it seems to have
   registered me successfully.
 * I imagine the problem is either some issue with malformed html, or the javascript
   we use for ajax submissions is not able to find some necessary information (or
   otherwise prevented from executing). It would be difficult to diagnose further
   without witnessing it fail.
 * Let me know if you can provide any more information and I’d be happy to help.
 * Thanks,
    Jon
 *  Thread Starter [alygraphy](https://wordpress.org/support/users/alygraphy/)
 * (@alygraphy)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/problem-with-adding-css-class-to-buttons/#post-14235357)
 * Hi [@jpowersdev](https://wordpress.org/support/users/jpowersdev/) ,
 * Thanks for replying!!
 * I have a feeling it has something to do with Split Hero. Since when I removed
   their CSS class, it worked again. I feel like it’s interfering with the ajax.
   I am asking their support in their side and see how it turns out. For now, I’l
   leave this open and wait for their response.
 * Thanks again! I appreciate it.
 *  [jpowersdev](https://wordpress.org/support/users/jpowersdev/)
 * (@jpowersdev)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/problem-with-adding-css-class-to-buttons/#post-14235407)
 * Hi [@alygraphy](https://wordpress.org/support/users/alygraphy/),
 * Works for me! Let me know what you find out.
 * Thanks,
    Jon

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

The topic ‘Problem with adding css class to buttons.’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/yikes-inc-easy-mailchimp-extender_a1c7e5.
   svg)
 * [Easy Forms for Mailchimp](https://wordpress.org/plugins/yikes-inc-easy-mailchimp-extender/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yikes-inc-easy-mailchimp-extender/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yikes-inc-easy-mailchimp-extender/)
 * [Active Topics](https://wordpress.org/support/plugin/yikes-inc-easy-mailchimp-extender/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yikes-inc-easy-mailchimp-extender/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yikes-inc-easy-mailchimp-extender/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [jpowersdev](https://wordpress.org/support/users/jpowersdev/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/problem-with-adding-css-class-to-buttons/#post-14235407)
 * Status: resolved