• 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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mike Walsh

    (@mpwalsh8)

    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

    (@iamhere)

    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

    (@mpwalsh8)

    It could be a conflict. If you want to fill out my Help and Support form 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.