Skip to content

Instantly share code, notes, and snippets.

@Jonnyauk
Created May 18, 2021 15:05
Show Gist options
  • Save Jonnyauk/e7380f0f9dd09c16d8e042ccfeb219a5 to your computer and use it in GitHub Desktop.
Save Jonnyauk/e7380f0f9dd09c16d8e042ccfeb219a5 to your computer and use it in GitHub Desktop.
/*
Gravity Forms can be hard to override core CSS - the selectors are too specific.
Use 'form' or even 'body' to get more specific tageting/override.
*/
/* Targeting example 1 - note 'form' selector to make more specific (not used in core GF CSS) */
form div.gform_footer.top_label {
/**/
}
/* Targeting example 2 - note 'body' selector to make more specific (not used in core GF CSS) */
body .gform_wrapper input[type='text'],
body .gform_wrapper input[type='url'],
body .gform_wrapper input[type='email'],
body .gform_wrapper input[type='tel'],
body .gform_wrapper input[type='number'],
body .gform_wrapper input[type='password'],
body .gform_wrapper input[type='file'],
body .gform_wrapper textarea {
/**/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment