Title: custom CSS class not working
Last modified: August 21, 2016

---

# custom CSS class not working

 *  [Iamhere](https://wordpress.org/support/users/iamhere/)
 * (@iamhere)
 * [12 years ago](https://wordpress.org/support/topic/custom-css-class-not-working/)
 * Hi
 * Great plugin – thank you.
 * I have one issue: custom css class doesn’t seem to work. I’ve tried in all the
   right places, but to no avail, the form doesn’t render with my custom class showing
   and I need it to avoid a conflict with a theme declaration.
 * Any ideas?
 * I’ve tried (in the new form page)
    Class: myclass CSS class(es) to add to the
   form’s containing DIV
 * CSS Prefix: myclass1
    Prefix to add to all Google CSS classes
 * An in general settings.
 * [https://wordpress.org/plugins/wpgform/](https://wordpress.org/plugins/wpgform/)

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

 *  Plugin Author [Mike Walsh](https://wordpress.org/support/users/mpwalsh8/)
 * (@mpwalsh8)
 * [12 years ago](https://wordpress.org/support/topic/custom-css-class-not-working/#post-4951455)
 * I have seen some sites where the way CSS is loaded by the theme, the Custom CSS
   rules get trumped by the theme’s rules so you have to add the “!important” CSS
   notation to some rules for them to take priority.
 * However, because you have the prefix defined, the more likely case is that you
   don’t have the rules set correctly. For 99% of the use cases, the prefix field
   is not necessary. The only time I recommend using prefix is when you have more
   than one form on your site (fairly common) but want them to be styled completely
   differently (far less common).
 *  Thread Starter [Iamhere](https://wordpress.org/support/users/iamhere/)
 * (@iamhere)
 * [12 years ago](https://wordpress.org/support/topic/custom-css-class-not-working/#post-4951456)
 * Yes, I’m aware of the issue of declaration priority, however, if I use a prefix
   the css doesn’t even show at all using Firebug, so something isstopping that 
   class being added.
 * Could it be a javascript conflict?
 *  Plugin Author [Mike Walsh](https://wordpress.org/support/users/mpwalsh8/)
 * (@mpwalsh8)
 * [12 years ago](https://wordpress.org/support/topic/custom-css-class-not-working/#post-4951459)
 * It could be a conflict. If you want to fill out my [Help and Support form](http://bit.ly/wpgform)
   I’ll take a look at it.

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

The topic ‘custom CSS class not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wpgform_8cc59f.svg)
 * [Google Forms](https://wordpress.org/plugins/wpgform/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpgform/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpgform/)
 * [Active Topics](https://wordpress.org/support/plugin/wpgform/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpgform/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpgform/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Mike Walsh](https://wordpress.org/support/users/mpwalsh8/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/custom-css-class-not-working/#post-4951459)
 * Status: not resolved