Gravity Forms 2 support? & a cool Divi style hack.
-
So I updated a site to Gravity Forms 2, and it appears to have broken some of the Surbma styles. Is everyone else seeing this? The submit button still looks right, colors still look right, and I think font size, but like the padding on fields is now gone.
=============================
As a side note, I don’t know if you want to add this to the plugin, but I figured out a cool hack to make the checkboxes much cooler, when using Divi (or at least Divi Builder). Here’s the CSS, description below:
.gform_wrapper .large-checkbox ul.gfield_checkbox li input[type=checkbox] { visibility: hidden; margin: 0; width: 0!important; } .large-checkbox input[type=checkbox] + label { font-size: 16px; } .large-checkbox input[type=checkbox] + label:hover { cursor: pointer; } .large-checkbox input[type=checkbox] + label:before { font-family: "ETmodules"; content: 'V'; font-size: 36px; position: relative; top: 0.3em; } .large-checkbox input[type=checkbox]:checked + label:before { content: 'Z'; }
I used the class .large-checkbox to target specific fields, but it could be applied site-wide by just removing those classes from the CSS. The 1st line hides the default checkbox. 2 just increases the font size of the label text. 3 makes the cursor look like you can click anywhere on the label (since you can). 4-10 inserts, positions, and styles the unchecked box symbol from the Divi font. 11 changes it to the checked box symbol/character.
The same could be done for radio buttons, but using the “[” and “\” symbols/characters from the Divi font.
EDIT: I can share my form with anyone interested privately (to see the checkboxes or the lack of padding on fields), but don’t want it publicly linked to.
https://www.ads-software.com/plugins/surbma-divi-gravity-forms/
- The topic ‘Gravity Forms 2 support? & a cool Divi style hack.’ is closed to new replies.