I am trying to overwrite the GF Orbital Theme styles.
My class: body .gform_widget .gform-theme.gform-theme–framework { … }
The problem that I’m having is that GF output-specific targeting for the form further overwrites my styles. I do not want to use !important, and I want my styles to be global, not form-specific.
If you’re using a child theme, you can use the same CSS selector to override the default Gravity Forms styles. If you don’t have a child theme, you can use the “Simple Custom CSS and JS” plugin to insert the code.
Both third-party plugins and child themes will prioritize the CSS by default since they load after the Gravity Forms CSS.
I don’t want to use a plugin. That is not the solution I want.
The problem is that the plugin outputs code inside the HTML, not the CSS. It also has a very high specificity targeting the id of that specific form. I want to create a global style so that it does not matter what form I add is going to be styled properly.
CSS Selector: body [id^=“gform_wrapper_”][data-form-index].gform-theme {
This didn’t really did the trick, as the inline code was still overwriting my CSS. So I looked into the code a bit and if you don’t pass a theme, it does not embed the CSS.