🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials November 4, 2026

How to Style Gravity Forms in WPBakery Page Builder (Without CSS)

GravityExtra
How to Style Gravity Forms in WPBakery Page Builder (Without CSS)

WPBakery Page Builder runs on a huge number of WordPress sites, and many of them collect leads, bookings and enquiries with Gravity Forms. The two work together out of the box, but the result often disappoints: the page around the form is carefully designed in the builder, and the form itself looks like it came from a different website. This tutorial shows how to place Gravity Forms in WPBakery pages and style them properly, including validation messages, multi-step forms, mobile layouts and popup forms, without writing CSS.

Why forms look out of place in page builder layouts

A page builder controls the layout: rows, columns, spacing, colours and fonts. A form plugin controls the form markup and ships its own styles. Between them sits your theme, which adds its own input and button styles. Three sets of rules meet in one place, and the form ends up with the theme’s grey buttons, the plugin’s default spacing and none of the colours of the page.

The usual fixes all have costs:

  • Custom CSS works, but every form state needs its own rules: focus, hover, errors, confirmation, the progress bar, each breakpoint. It breaks quietly when the form plugin changes its markup, and nobody but a developer can change it.
  • Styling per form in the form plugin is a good start, but the same form often appears in several places, a full-width contact section on one page and a narrow sidebar on another, and one look rarely fits both.
  • The basic form element that comes with WPBakery places the form and toggles the title, description and AJAX, but has no style settings at all.

What designers want is simple: style the form where they style everything else, in the builder, for that placement, and see the result immediately.

What a good form element needs

  • The usual placement settings: which form, title and description, AJAX, field values for dynamic population and the tab index.
  • Style settings for every part of the form: the form box, title, labels, inputs, drop downs, checkboxes and radios, buttons, validation messages and the confirmation message.
  • Multi-step support: progress bar and step colours, and the Next and Back buttons.
  • Tablet and mobile values, plus a way to stack side-by-side fields on phones.
  • A live preview in the editor, including the states you cannot see without submitting: errors, the confirmation and later pages.
  • A popup option for forms that should not take space on the page.
  • Safe input: a wrong value in a settings box must never break the page.

The Gravity Forms WPBakery Elements add-on from GravityExtra was built around exactly this list. It adds a Gravity Form element and a Gravity Form Popup element to the WPBakery Add element window.

Step 1: place the form

Install and activate the add-on, activate the licence in Forms, Settings, WPBakery Elements, and edit a page with WPBakery. Click Add element, open the GravityExtra category and add Gravity Form to a column. On the General tab choose the form. Only active forms are listed, and the chosen form is shown on the element block in the backend editor.

Decide whether you want the form title and description; most designs already have a heading in the builder, so both are off by default. Switch on AJAX so validation and the confirmation appear without a page reload. If the form has fields that allow dynamic population, fill them from the element with lines like source=summer-campaign: the entries then show which page each lead came from, without a separate form per page.

Step 2: style the form box and the fields

The style settings are grouped in tabs. A good order of work:

  1. Buttons: background, text colour, corner radius and padding. The button is the most visible part of a form and usually carries the brand colour.
  2. Inputs: a light background, a subtle border colour, the same corner radius as the button or slightly smaller, and comfortable padding. Then the focus state: a border colour and a soft focus ring in the brand colour help people see where they are typing.
  3. Labels: a dark colour, a slightly heavier weight and a few pixels of space below. Give the required marker an accent colour.
  4. Form box: a background, padding, corner radius and a soft shadow turn the form into a card that stands out from the page. A maximum width keeps long lines readable and centres the form.
  5. Checkboxes and radios: the tick colour, and a two-column layout for long lists of short choices.

Every field is optional. Leave a setting empty and the form keeps the look of your theme; enter something the add-on does not understand and it is simply ignored.

A Gravity Forms contact form placed with the Gravity Form element and styled from its settings: a white card with rounded corners and a soft shadow, a dark navy title and description, bold labels with orange required markers, light grey rounded inputs, choices in two columns and a teal rounded Send message button
A real Gravity Forms form styled only with the element settings: form box, title, labels, inputs, choices and button.

Step 3: style the states people rarely see in the editor

Errors and the confirmation message are the moments that decide whether a visitor trusts the form. They are also the states designers forget, because seeing them means filling in and submitting the form over and over.

The Editor preview tab solves this. Set Show in the frontend editor to Validation errors and the editor shows the form with its required fields failed and their messages. Style the summary box, the messages under the fields and the error borders on the Validation tab. Switch to Confirmation message to style the thank-you message on the Confirmation tab. Visitors always get the live form, whatever you choose here.

Step 4: multi-step forms

Long forms convert better in steps. Gravity Forms adds a progress bar or a list of steps to forms with page breaks, and the Multi-step tab styles them: the track and fill colours, the bar height and corners, the progress title, and for step lists the colours of the current and completed steps. Choose A page of a multi-page form in the preview setting and enter a page number to style later pages without clicking through the form.

Step 2 of 3 of a Book a class form: the progress bar title, a rounded teal progress bar on a light track, a class choice in two columns with a teal radio dot, and rounded Back and Next buttons
Multi-step forms: progress bar colours, height and corners, styled Back and Next buttons.

Step 5: make it work on phones

A form that looks perfect on a laptop can be cramped on a phone: two name fields side by side, small tap targets and a button that is hard to hit. The Responsive tab has tablet and mobile values for the padding and the text sizes of the title, labels, inputs and buttons, and two switches: one field per row stacks side-by-side fields and name and address parts, and full-width buttons makes the buttons easy to tap.

The contact form on a phone: first and last name stacked one per row, smaller labels, choices in one column and a full-width Send message button
Mobile settings: stacked fields, smaller text and a full-width button below 768 px.

Step 6: show a form in a popup

Some forms should not take space on the page: a newsletter sign-up, a call-back request, a quick question. Add the Gravity Form Popup element instead. Choose how it opens: a button, a text link, a timer after the page loads, or exit intent when the pointer leaves the window. A link anywhere on the page to the element’s ID opens it too, which makes it easy to open the form from a menu item or a hero button.

The popup is built on the native HTML dialog, so it is accessible without extra work: focus moves into the form, Esc closes it, focus returns to the button, and the page behind does not scroll. AJAX is on by default, so errors and the confirmation appear inside the open popup. Timed and exit-intent popups remember the visit for the number of days you choose, in the visitor’s browser only.

The Gravity Form Popup element open over a darkened page: a white rounded popup with the heading Ask the studio a question, a close button and the styled contact form inside
The popup element: a button, link, timer or exit intent opens the form in an accessible popup.

Three looks to start from

If you are not sure where to begin, start from one of these three combinations and adjust the colours to your brand.

  • Clean card: a white form box with 40 px padding, a 16 px corner radius and the medium shadow, light grey inputs with a 10 px radius, a pill-shaped button in the brand colour and a soft focus ring in the same colour. It works on almost any page background and is the look used in the screenshots of this article.
  • Minimal line: no form background or shadow, inputs with only a bottom border (set the input border width to 0 0 2px 0), labels in capitals with a little letter spacing, and a square button. It suits editorial and portfolio sites where the form should feel part of the text.
  • Dark section: a dark form background, white labels, inputs with a slightly lighter dark background and white text, a bright accent button and a bright focus ring. Check the contrast of the placeholder text and the error messages on the dark background before you publish.

Whichever you pick, keep the same corner radius on inputs, choice cards and buttons, use the brand colour for one thing only, usually the button and the focus ring, and leave enough space between fields: a form that breathes feels shorter than it is.

Common questions

  • Will the settings survive a Gravity Forms update? The settings are attached to stable Gravity Forms classes and are tested with the Gravity Forms 2.5 theme and the Orbital theme, on Gravity Forms 2.9 and 3.1.
  • What happens if I switch WPBakery off? The elements are stored as shortcodes, so the styled forms keep showing.
  • Can the same form look different on two pages? Yes. Styles belong to each element, not to the form.
  • Do I still need custom CSS? Rarely. When you do, give the element an ID or a class and add your rules to the theme.

A checklist before you publish

  • Preview the validation errors and the confirmation message in the editor.
  • Click through every page of a multi-step form.
  • Check the form at phone width and switch on one field per row if anything looks squeezed.
  • Make sure the button and text colours have enough contrast.
  • For popups, test the trigger, Esc and the close button, and submit the form once inside the popup.

The documentation describes every setting. To add the elements to your WPBakery site, see the Gravity Forms WPBakery Elements add-on.

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