PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Suppressing the stylesheet on specific forms (ie. "Output CSS" setting)

  1. Hi,

    "Output CSS" is a global setting. It affects all of the forms in your blog.

    Is there a way to turn off the CSS output for specific blogs?

    Thanks!

    Posted 13 years ago on Thursday July 8, 2010 | Permalink
  2. Currently no, it's a global setting so you either bring the CSS yourself in your theme stylesheet or let the plugin output it. Any reason why you want to suppress it sometimes and not others?

    Posted 13 years ago on Thursday July 8, 2010 | Permalink
  3. Thanks. Yes. In general, we want the CSS on. But for one particular form, we want the form fields displayed differently.

    I think I should be able to over-ride the default GF CSS by assigning a class to the form. ie. "Form CSS Class Name"

    Thanks again.

    Posted 13 years ago on Thursday July 8, 2010 | Permalink
  4. Everything is wrapped in one main container with a unique ID ex: gform_wrapper_1

    Yes, as you mentioned, you should be able to target everything in that particular form with some specific inheritance rules like the ones below.

    #gform_wrapper_1 .gform_heading {color:#f00}
    #gform_wrapper_1 .gform_description {font-size:10px}
    Posted 13 years ago on Thursday July 8, 2010 | Permalink
  5. Yes, perfect, thanks!

    Posted 13 years ago on Thursday July 8, 2010 | Permalink
  6. Sorry, forgot to mention this if you hadn't seen it already.

    http://www.gravityhelp.com/resources/cssguide/css_guide.html

    That might help a bit.

    Posted 13 years ago on Thursday July 8, 2010 | Permalink