🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms CSS Ready Class Picker Premium Add-on Setup Guide

Updated 8 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What the Add-on Does
  3. Installation
  4. Using the Picker
  5. Classes That Exclude Each Other
  6. Deprecated and Legacy Classes
  7. The Extra GravityExtra Classes
  8. Form-wide Classes
  9. Favourites
  10. Options
  11. Good to Know
  12. Frequently Asked Questions
  13. Does it change my forms?
  14. Will my existing classes still work?
  15. Why are some Gravity Forms classes marked?
  16. What happens if my licence expires?
  17. Which versions are supported?
  18. Pick Gravity Forms CSS Classes Visually

Video walkthrough

Gravity Forms CSS Ready Classes: Pick Them Visually, Cards, Pills & Choice Grids
Watch: pick Gravity Forms CSS Ready classes from a visual list, step by step. Watch on YouTube

The Gravity Forms form editor with the CSS classes picker open for a Checkboxes field: a search box, the switches Only classes for this field, Hide deprecated and legacy and Favourites only, the current value my-custom gf_list_2col, and cards with a mini preview, the class name, a description and an add button for each class
The picker for a Checkboxes field: search, filters, the current value and one card per class with a preview.

Requirements

  • WordPress 6.5 or newer and PHP 7.4 or newer.
  • Gravity Forms 2.9 or newer (any licence). Tested with Gravity Forms 2.9 and 3.1.
  • A GravityExtra licence key for this add-on.

What the Add-on Does

Gravity Forms lets you lay out a form with CSS classes: put one in the Custom CSS Class box of a field and it lines up in columns, shows its choices in a grid, turns an HTML field into a coloured banner and so on. The editor only gives you a plain text box, so you have to remember exact names, and the list has changed over the years: the column classes were deprecated in Gravity Forms 2.5 and Gravity Forms 3 now flags nearly every Ready Class as no longer necessary.

This add-on puts a Pick classes button above that box. It opens a searchable window with every class, a small preview, a plain description and a clear label for classes that are deprecated, including what to use instead. You click a class to add it and click it again to remove it. Classes you typed yourself are never touched.

It also brings a library of extra layout classes: highlight boxes, cards, two, three and four column choice grids, pills, a hidden label, a label on the left, stacked buttons and a full-width submit button. Their CSS is a few lines each, scoped to the class, uses no !important and is printed only on forms that use the class.

Installation

  1. Download the add-on zip from your GravityExtra account and upload it in Plugins → Add New → Upload Plugin, then activate it.
  2. Go to Forms → Settings → CSS Ready Classes, enter your key in the Gravity Extra License section and click Activate License.
  3. Edit a form. The picker button appears next to the CSS class setting of every field.

Without an active licence the button is shown but disabled with a short message. Classes that are already on your forms keep working on the front end.

Using the Picker

  1. Open a form in the editor and click a field.
  2. Open the Appearance tab of the field settings. Above Custom CSS Class you will see the Pick classes button.
  3. Click it. The window shows the classes that fit the selected field: choice lists for checkboxes and radio buttons, alert banners for HTML fields, hide AM/PM for Time fields, hide characters left for Paragraph fields, and the layout classes for every field.
  4. Type in the search box to filter by class name, label or description. Typing half finds every half-width class; typing grid finds the choice grids.
  5. Click the + button of a card to add that class. The button turns blue and shows In use. Click it again to remove the class.
  6. Press Done (or the Escape key) and save the form.

The box at the top of the window shows the current value, and lists the classes that are not part of the catalogue as Your own classes (kept). Whatever you typed by hand stays exactly where it is.

Classes That Exclude Each Other

Some classes cannot be combined. A field is either in the left half or the right third, a choice list has one number of columns, and an alert banner has one colour. When you add a class from such a group, the add-on removes the other class of the same group first, so you never end up with two list layouts that fight each other. Classes from different groups combine freely, for example a card with a two column grid.

The CSS classes picker searched for half: the legacy column classes gf_left_half and gf_right_half carry a Deprecated in Gravity Forms 2.5 badge and a Use instead box that points to the field width setting of the form editor
Deprecated classes are labelled and say what to use instead.

Deprecated and Legacy Classes

Every card shows where the class comes from, Gravity Forms or GravityExtra. Gravity Forms classes that have been deprecated carry a badge with the version, and a Use instead box that tells you the modern way to get the same result.

Group Classes Status in Gravity Forms
Width helpers gfield--width-half, gfield--width-third, gfield--width-quarter and the other widths the layout editor writes Current. Same classes the 2.5 layout editor uses.
Legacy columns gf_left_half, gf_right_half, thirds, quarters, gf_inline Deprecated in 2.5. Use field width in the form editor.
Choice lists gf_list_2col to gf_list_5col, the vertical versions, gf_list_inline Flagged as no longer necessary in 3.x, except the inline list.
List heights gf_list_height_25 to gf_list_height_150 Flagged as no longer necessary in 3.x.
Alerts gf_alert_green, red, yellow, gray, blue Flagged as no longer necessary in 3.x.
Other gf_scroll_text, gf_hide_ampm, gf_hide_charleft, gf_invisible Flagged as no longer necessary in 3.x.
Form-wide gf_simple_horizontal Deprecated in 2.6.

The legacy column classes only work when the neighbouring fields carry the matching classes, and only in the top label layout, so they are easy to break. Since Gravity Forms 2.5 you can drag fields next to each other in the form editor or set a field width, which writes the gfield--width classes for you. The width helpers are included in the picker for the cases where you want to set them by hand.

Use the switch Hide deprecated and legacy to see only current classes. Under Forms → Settings → CSS Ready Classes you can make that the default for the picker.

Plan for Gravity Forms 4.0

Gravity Forms has announced that support for the legacy Ready Class markup will be removed in version 4.0. The GravityExtra classes and the width helpers do not depend on it, so they are the safe choice for new forms.

The Extra GravityExtra Classes

Class Use it on What it does
gecrc-highlight Any field Soft blue background with an accent bar on the left.
gecrc-card Any field White card with a thin border, rounded corners and a light shadow.
gecrc-compact Any field Tighter spacing between the label, the input and the description.
gecrc-grid-2 Checkboxes, radio buttons Choices in two columns; one column on phones.
gecrc-grid-3 Checkboxes, radio buttons Choices in three columns; two on tablets, one on phones.
gecrc-grid-4 Checkboxes, radio buttons Choices in four columns; two on tablets and phones.
gecrc-pills Checkboxes, radio buttons Each choice as a bordered, rounded block in a wrapping row.
gecrc-hidden-label Any field Hides the label visually and keeps it for screen readers.
gecrc-label-side Any field Label to the left of the input on wide screens, stacked on small ones.
gecrc-stack-buttons Form (CSS Class Name) Previous, Next and Submit buttons on top of each other, full width.
gecrc-full-submit Form (CSS Class Name) Submit button as wide as the form.
gecrc-center-buttons Form (CSS Class Name) Buttons centred under the form.

Field classes go into the field setting, form classes into the form setting (see below). Each class has its own small block of CSS. When a form is displayed, the add-on looks at the classes the form uses and prints only the rules for those classes. A form that uses none of them loads no extra CSS at all, and a class used on three forms on the same page is printed once.

The rules are written to sit nicely inside your theme. They start from the form wrapper, use one to six class selectors, never an ID and never !important, so your own CSS can override them with an ordinary rule. This is the whole rule set of the card class:

.gform_wrapper .gecrc-card {
  background: #fff;
  border: 1px solid #d9dde3;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
  padding: 16px;
  box-sizing: border-box;
}
A form on the site that uses the extra GravityExtra classes: a highlight box, a card, choices in two and three column grids, choices as pills, a hidden label and two half-width fields on one row
The extra classes on a live form: boxes, choice grids, pills and half-width fields.

Form-wide Classes

Open Forms → your form → Settings. Next to CSS Class Name the same Pick classes button opens the picker with the classes that belong to the whole form: gecrc-stack-buttons, gecrc-full-submit, gecrc-center-buttons and the Gravity Forms class gf_simple_horizontal. Save the form settings afterwards.

Favourites

Click the star on a card to make a class a favourite. Favourites are saved for your user on your own site and are there the next time you open the editor, on any form. Switch on Favourites only to see only those classes, which is handy when you use the same five layouts again and again.

Options

Where What
Switch: Only classes for this field On by default. Shows the classes that fit the selected field type. Switch it off to see every field class.
Switch: Hide deprecated and legacy Hides classes that Gravity Forms has deprecated or flagged as legacy.
Switch: Favourites only Shows only the classes you starred.
Settings: Hide deprecated and legacy classes by default Starts the picker with the second switch on.

Good to Know

  • No outside requests. The picker, the previews and the CSS all come from your own site. Nothing is loaded from other websites and no form data is sent anywhere.
  • Works in the Gravity Forms 2.9 and 3.x editors. The button is added through the field settings events of the editor, so it also appears for fields added by other add-ons.
  • Theme safe. The front-end rules are scoped to the class names and loaded only where used. Remove a class and its CSS is gone from that form.
  • Keyboard friendly. The window is a dialog, focus starts in the search box, Escape closes it and every button can be reached with the Tab key.

Frequently Asked Questions

Does it change my forms?

Only the CSS class text of the field or form you are editing, and only when you click a class. Nothing else is touched.

Will my existing classes still work?

Yes. The picker reads what is in the box and keeps every class it does not know. Gravity Forms classes keep working in Gravity Forms; this add-on does not change the Gravity Forms stylesheets.

Why are some Gravity Forms classes marked?

Gravity Forms itself has deprecated the legacy column classes and shows a notice for most other Ready Classes in the 3.x editor. The picker shows the same information next to each class, so you can decide before you use one.

What happens if my licence expires?

Classes already on your forms keep working. The picker button is disabled until the licence is active again.

Which versions are supported?

Gravity Forms 2.9 or newer with WordPress 6.5 and PHP 7.4 or newer. The add-on is tested with Gravity Forms 2.9 and 3.1.

Pick Gravity Forms CSS Classes Visually

Search every Ready Class with a preview, see which ones are deprecated and add extra layout classes that load only where they are used.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr