Description
The gform_disable_form_theme_css filter allows the default theme used by forms created with Gravity Forms 2.5 and greater to be disabled.
Usage
The filter which would run for all forms would be used like so:
add_filter( 'gform_disable_form_theme_css', 'your_function_name' );
Parameters
- $disabled bool
Whether to disable the theme css.
Examples
1. Disable the theme
add_filter( 'gform_disable_form_theme_css', '__return_true' );
Placement
This code should be placed in the functions.php file of your active theme or a custom functions plugin.
Since
This filter was added in Gravity Forms v2.5.
Source Code
This filter is located in GFFormDisplay::get_form_enqueue_assets() in form_display.php.
The post gform_disable_form_theme_css appeared first on Gravity Forms Documentation.