This page may contain affiliate links. Please read my disclaimer for more information.

Gravity Forms Output Default CSS Settings

  |  by Chris Eggleston

Problem

There used to be a setting in the Gravity Forms Settings to enable and disable the default CSS. This setting would allow you to disable all of the form CSS to easily apply your own custom CSS. It looked like this:

This setting was removed with the release of Gravity Forms version 2.8, and some people have been asking where it went and how they can disable the default CSS.

I suspect the change was made to coincide with the new Gravity Forms Theme Framework and how all of that is evolving.

Solution

With this change, Gravity Forms introduced two filters for managing the Gravity Forms Default CSS.

1. gform_disable_css

This filter will disable all of the default CSS from displaying on the frontend. This includes styles that handle conditional logic, columns, hidden fields, ready classes, etc.

How to implement this filter: https://docs.gravityforms.com/gform_disable_css/

2. gform_display_disable_css_setting

This filter indicates whether the Output Default CSS setting should be displayed. When using this filter, you will add the setting (screenshot above) back to the Forms > Settings page. You can then use the toggle to disable or enable the default CSS.

How to implement this filter: https://docs.gravityforms.com/gform_display_disable_css_setting/

NEED MORE HELP?

If you still need help, feel free to use the comments or chat options below.

If you have an active Gravity Forms license, you can also open a support ticket here.

Photo of author
About the Author
Chris Eggleston
I’m not just a Gravity Forms enthusiast; I’m a dedicated father and loving husband. As the owner of WP Mantis & Marketing Draft, I’m on a mission to simplify the WordPress experience for site owners. I try to bring a unique perspective to the Gravity Forms community.
Gravity Wiz Add-Ons

Advertisement

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments