Skip to content

Instantly share code, notes, and snippets.

@forgeandsmith
forgeandsmith / Gravity Forms Reset Styles
Last active June 22, 2021 07:33
Gravity Forms SCSS reset styles for easy style editing and management
///////////////////////////////////////////////
////// GRAVITY FORMS RESET STYLES //////
///////////////////////////////////////////////
// These styles are made in mind to be used with SCSS or LESS
// If you use these styles, you must go to the Gravity Forms settings in the WordPress back end and set Output CSS to No.
////----- Core Containers
.gform_heading,
.gform_body,
@forgeandsmith
forgeandsmith / gf-disable-output-css-functions
Last active August 29, 2015 14:05
Gravity Forms Disable Output CSS Functions
// this function disables GF CSS on theme activation
function gravity_css_off_theme_activate() {
update_option( 'rg_gforms_disable_css', '1' );
update_option( 'rg_gforms_enable_html5', '1' );
}
add_action('after_switch_theme','gravity_css_off_theme_activate');
// this functiona disables GC CSS on the GF plugin activation
function gravityform_activate() {
update_option( 'rg_gforms_disable_css', '1' );
@forgeandsmith
forgeandsmith / Gravity Forms CSS only Reset Styles
Created August 15, 2014 05:11
Gravity Forms CSS only reset styles for easy style editing and management
.gform_heading,
.gform_body,
.gform_footer {
clear: both;
padding-bottom: 20px;
}
ul.gform_fields {
list-style: none;
margin: 0 -15px;