How to Customize The Gravity Forms Layout and Design in WordPress (2024)

How to Customize The Gravity Forms Layout and Design in WordPress (1)Colin Newcomer

/Updated August 17, 2022 /6 Comments

How to Customize The Gravity Forms Layout and Design in WordPress (2)

Gravity Forms helps you create all kinds of helpful forms for your WordPress site. But if you want to get the most from those forms, it’s important to optimize the Gravity Forms layout.

Optimizing the layout of your forms makes them more user-friendly and lets you control exactly how you display information on your forms.

There are three main ways to customize the Gravity Forms layout:

  1. Built-in options for basic layout choices.
  2. CSS styling (Gravity Forms includes a number of built-in CSS classes).
  3. Using other Gravity Forms Plugins for even more flexibility.

In this tutorial, you’ll learn how to use all three methods to customize the layout of your forms.

We’ll start by discussing the basic built-in options and Gravity Forms layout CSS. Then, we’ll take you through how to use Gravity Perks and some of its 47 add-ons to optimize your layouts further and add new features to your forms.

Why It’s Important to Customize the Layout of Your Forms

Form layout and form looks have a large effect on form usability and conversion rates.

For example, data from a Google eye-tracking study suggests that even small changes like using a left-aligned top label or well-deployed dropdowns can lead to faster form completion times and an easier experience for visitors as they navigate input fields (as measured by fewer eye movements).

Basically, this isn’t something you should ignore, and with the Gravity Forms layout options that we’ll show you in this post, you’ll have the ability to create a form layout that’s optimized for your visitors.

How to Use Basic Gravity Forms Layout Options

The Gravity Forms WordPress plugin includes some basic layout options in the form builder interface.

First, the obvious one is the drag-and-drop interface itself – you can use drag-and-drop to arrange the order of all fields in relation to one another. You can also use drag-and-drop to arrange the fields into columns.

If you edit a field, you’ll also get some more layout options in the Appearance tab. For example, you can change the location of a field’s description or hide its label and/or sub-label:

If you go into the Form Settings, you’ll also get additional options for label and description placement in the Form Layout section:

There are also some fields that can help you control the layout of your forms. For example, you can use the section break and page break fields to divide your form into different sections or create multi-page forms.

How to Use CSS Layouts for Gravity Forms

If you want to go beyond the basic built-in layout options, Gravity Forms comes with its own built-in CSS classes that you can use, called “Ready Classes”.

You can use “Ready” classes to:

  • Change the layout of list fields. For example, dividing a list of checkboxes / radio buttons / selectors into multiple columns.
  • Use a horizontal form layout where the submit button is beside form fields. Best for short forms.

View a full list of Gravity Forms Ready Classes – this page also includes visual examples.

CSS Ready Classes for column layout are deprecated in Gravity Forms 2.5. Instead, use the drag-and-drop editor to arrange your fields into columns.

To add a Ready Class to one of your form fields, you can use the Custom CSS Class setting in the Appearance tab of a field’s settings:

You can add multiple Ready Classes to a field, or mix-and-match a Ready Class with your own custom CSS that you’ve added to your site’s stylesheet. To do this, just add a space between each CSS class name in the Custom CSS Class setting.

Let’s look at some specific examples…

How to Create a Horizontal Gravity Forms Layout

With Ready Classes, you can build horizontal form layouts like below:

To achieve this layout:

  • Add gf_simple_horizontal to the CSS Class Name in the Form Layout section in Form Settings.
  • Align your fields horizontally using the drag-and-drop editor.

If you’re using this layout, you might also want to hide Gravity Forms field labels when using placeholders. You can do this using the Field Label Visibility setting in each field’s Appearance tab:

Other Gravity Forms CSS Tweaks

Three other layout tweaks you can make with CSS are:

Note that you can also use CSS to customize your forms’ background color (based on its form wrapper), form header, spacing, and so on.

Display and customize your forms on the front end using shortcodes

Ever used shortcodes before? These little one-liners of code allow you to easily display how your forms appear on the front end of your site. You can use shortcodes to embed forms, display user information, show progress meters, run split tests, display forms conditionally, and plenty more. Learn more about Gravity Forms shortcodes from our comprehensive guide.

How to Further Customize Your Layouts With Gravity Perks

To further customize your Gravity Forms layout, you can use Gravity Perks. Gravity Perks is a collection of 47 different add-ons for Gravity Forms that can help you enhance your forms in a ton of different ways.

One of those ways? New layout options!

For example, with the GF Nested Forms add-on, you can “nest” forms inside one another for custom layouts, including a nice Gravity Forms table layout.

This not only lets you create custom form layouts, but it also helps you add new functionality to your forms. You can create one parent form and then use a child form to collect additional entries and attach them to the parent form.

The child form entries will then display in a Gravity Forms table layout inside the parent form.

For example, if you create a team registration form for a local sports league, you could create:

  • A parent form for people to add the details about their team as a whole.
  • A repeatable child form inside that parent form where people can add details about each individual team member.

You’ll start by creating the child form. Then, you can “nest” that form inside the Gravity Forms layout of the parent form using the Nested Form field. By default, it will use a Gravity Forms table layout and you can choose which summary fields to include:

Here’s an example of what that might look like on the front-end – you can see how the plugin uses a Gravity Forms table layout for the repeatable child form:

You also have full control over the template of the nested child form. There are four available templates which you can customize by following these steps:

  • nested-entries.php – renders child entries in the Nested Form field. This is what defines the Gravity Forms table layout.
  • nested-entries-detail.php – renders child entries on the back-end in the entry detail page.
  • nested-entries-simple-list.php – renders a single value from each child entry when using merge tags.
  • nested-entry.php – renders a single child entry when using merge tags.

Conclusion

Optimizing your form’s layout is important for usability and user experience.

Gravity Forms includes basic layout options in the form builder. Then, you can use Ready Classes to further customize your Gravity Forms layout.

If you want to take things further, you can use Gravity Perks and the GF Nested Forms add-on to create a Gravity Forms table layout where a child form is nested “inside” a parent form.

To get started, purchase Gravity Perks today.

Did this resource help you do something awesome with Gravity Forms?

Then you'll absolutely love Gravity Perks; a suite of 47+ essential add-ons for Gravity Forms with support you can count on.

View All PerksBuy Now

Tags: gp nested forms, ready classes

  1. How to Customize The Gravity Forms Layout and Design in WordPress (11)

    Zack LossingAugust 18, 2020 at 1:04 am

    Is there a way to CSS in gravity forms whereas there are 2 columns but one field is larger than the other (so basically a 2/3 to 1/3, 2 columns)? I tried giving the 2/3 field a larger field size but it still split right in half :/. Any help is appreciated :)

    Reply

    1. How to Customize The Gravity Forms Layout and Design in WordPress (12)

      Samuel BassahStaffAugust 18, 2020 at 7:22 am

      Hi Zack,

      You may create your own classes in your Website CSS and assign the class name in the respective fields. You can use the CSS below as a starting point to achieve what you want.

      .gf_one_third{width: 33.3%!important;display: inline-block;vertical-align: top;float: none;}

      .gf_two_third{width: 66.6%!important;display: inline-block;vertical-align: top;float: none;}

      I also found this plugin online, that appears to do something similar. You can check it out.

      Best,

    2. How to Customize The Gravity Forms Layout and Design in WordPress (13)

      Sean SJanuary 3, 2021 at 3:00 pm

      Samuel Bassah, thank you so much for the code you included in your reply. It saved me and I was able to use it. Just wanted to say thank you!! 🙏

  2. How to Customize The Gravity Forms Layout and Design in WordPress (14)

    ArvindJune 19, 2020 at 2:42 am

    A suggestion:Before Submission, we can preview a form using {all_fields} merge tag. However when previewing a form (or when the form is sent via a email notification) containing a nested field, the nested field entries by default appear one below the other in a LIST format instead of a TABLE format. If the Nested form field entries in the preview instead by default appeared in a table format it would be in a more appropriate and very neat reader friendly way of viewing the contents.In other words – If a List field is used in a form – and if you see the preview (or the notification email in which it is sent), the preview of the list field is a very neat table with one row each for every submitted entry of a list field which makes it very easy for the user to read and make sense of the data. However if a nested field is used instead of a list field – the preview (or the notification email) the entries do not appear as table rows for each entry but instead appear as a vertical list blocks of all the submitted entries.

    If there is a way to change the default view of the nested form field entries in the preview submission (Or notification) to the table format – it would be great if a small article is written on it on your site please

    Thanks for the great work you guys are doing with gravity forms!Cheers

    Reply

    1. How to Customize The Gravity Forms Layout and Design in WordPress (15)

      Ryan DonovanJune 19, 2020 at 9:19 am

      Hello Arvind, this is an excellent question. You can actually control the output of the nested form fields by using the nested forms templating system to make the list view or detailed view, then using the {all_fields} or nested fields merge tag to display it. If you want more control over the all fields merge tag or you wish to only display a single field at a time, you can customize this via the All Fields Template plugin.😃

    2. How to Customize The Gravity Forms Layout and Design in WordPress (16)

      ArvindJune 19, 2020 at 10:13 am

      Thanks for your reply . In addition to your reply I also found the following resource elsewhere on your website which had in a way already provided this functionality. I will try implementing. Thanks for all the resources.In case anyone else needs this too I am posting the github link of the snippet created by David:

      https://gist.github.com/spivurno/3a3b92bf32824a414c87c23bbf5ca335

Leave a Reply

Insights, advice, suggestions, feedback and comments from experts

Introduction

As an expert in Gravity Forms, I can provide you with valuable insights and knowledge on optimizing the layout of your forms. I have extensive experience working with Gravity Forms and have a deep understanding of its features and customization options. I will guide you through the concepts mentioned in the article and provide you with additional information to help you make the most of Gravity Forms.

Optimizing the Layout of Gravity Forms

The article discusses three main ways to customize the layout of Gravity Forms:

  1. Built-in options for basic layout choices: Gravity Forms provides a drag-and-drop interface that allows you to arrange the order of fields and create columns. You can also customize the appearance of individual fields, such as changing the location of a field's description or hiding its label and sub-label. Additionally, you can use section break and page break fields to divide your form into different sections or create multi-page forms.

  2. CSS styling: Gravity Forms includes a number of built-in CSS classes, known as "Ready Classes," that you can use to change the layout of list fields, create a horizontal form layout, and more. You can add these classes to your form fields using the Custom CSS Class setting in the Appearance tab of a field's settings. By combining Ready Classes with your own custom CSS, you can achieve advanced layout customization.

  3. Using other Gravity Forms Plugins: Gravity Perks is a collection of 47 add-ons for Gravity Forms that offer additional functionality and layout options. One of these add-ons is GF Nested Forms, which allows you to nest forms inside one another for custom layouts. This add-on enables you to create a Gravity Forms table layout where a child form is nested inside a parent form. You can use this feature to collect additional entries and attach them to the parent form, displaying them in a table layout.

Importance of Customizing Form Layouts

Customizing the layout of your forms is crucial for improving usability and user experience. Studies have shown that small changes in form layout, such as using left-aligned top labels or well-deployed dropdowns, can lead to faster form completion times and a better overall experience for visitors. By optimizing your form layout, you can create a user-friendly and visually appealing form that encourages higher conversion rates.

Additional Tips and Resources

In addition to the concepts mentioned in the article, here are some additional tips and resources to help you further customize your Gravity Forms layouts:

  • Numbering rows in a Gravity Forms list field: You can use CSS to add numbering to rows in a list field, providing a clear structure and making it easier for users to understand the form's content.

  • Hiding the Gravity Forms Ajax spinner: If you want to remove the default Ajax spinner that appears during form submission, you can use CSS to hide it.

  • Transforming the contents of an HTML field into a banner message: If you have an HTML field in your form and want to display its contents as a banner message, you can use CSS to achieve this effect.

  • Displaying and customizing forms on the front end using shortcodes: Gravity Forms provides shortcodes that allow you to easily display your forms on the front end of your website. You can use shortcodes to embed forms, display user information, show progress meters, run split tests, and more.

For more detailed information on these topics, you can refer to the official Gravity Forms documentation and the Gravity Perks website.

I hope this information helps you optimize the layout of your Gravity Forms and create forms that are user-friendly and visually appealing. If you have any further questions or need assistance with specific customization tasks, feel free to ask!

How to Customize The Gravity Forms Layout and Design in WordPress (2024)

FAQs

How to Customize The Gravity Forms Layout and Design in WordPress? ›

Make sure you are logged in. Click on the Customize button to launch WordPress Cusotmizer. Click on Styles and Layouts Gravity Forms and then select the gravity Form you want to customize. Wait while the plugin saves you form selection and refreshes the page.

How do you change the gravity form style? ›

On the right side of the editor screen, click to open Form Styles and look for Form Theme. The Orbital theme includes a small number of common settings accessed via the block editor, with more on the way.

How do you make Gravity Forms look good? ›

To style a Gravity Form, you need to apply some simple CSS to the elements of the form. There are several ways you can add custom CSS to your site but the easiest is to go to Appearance > Customize > Additional CSS and add the code there. The first thing you need to do is decide which elements you want to style.

How do I change the design of a form in WordPress? ›

To do this, you must open the block panel on the right side of the screen and scroll down to the 'Themes' section. From here, you can choose from a library of 40+ pre-designed themes to instantly give your form a beautiful look. Next, you can scroll down to the 'Field Styles' section to further customize your form.

Is there a way to alter gravity? ›

Fancy flying? Humans are a far way off manipulating gravity. The only hope of tailoring gravity to our needs lies with quantum vacuum effects, in which energy and particles and anti-particles appear out of nowhere.

How do I add custom CSS to Gravity Forms? ›

To add a Ready Class to a field, go to the Form Editor and select the field you want to change. Under the “Appearance” tab in the Settings Sidebar, you will see an input called “Custom CSS Class”. Add the Ready Class name or names you want to add to the field here and then save the form.

How do you change gravity? ›

The only thing we know that affects a body's gravity is the amount of mass it contains. So to change Earth's gravity we would need to add or remove mass from our planet. But to make a noticeable change, we would need to move vast amounts of material.

Can you add images to Gravity Forms? ›

With Gravity Forms you can quickly and easily add images to a form, helping to improve aesthetics, user experience, and form conversions.

How do you upgrade Gravity Forms? ›

How do I upgrade my Gravity Forms license?
  1. Log in to the Gravity Form Account page, and next to the license you would like to manage, click the Manage Subscription button.
  2. Click Upgrade License button at the bottom of the information box.
  3. You will be shown a list of upgrade options, see the screenshot at bottom.
Mar 27, 2024

Is Gravity Forms worth it? ›

For the $59 that the Gravity Forms Basic license costs, you do get a lot of useful features, such as in-dashboard entry management, conditional logic, calculations, integrations, and more, as well as direct support from the Gravity Forms team.

How do you customize Gravity Forms in Elementor? ›

You can easily style the Input Fields of the Gravity Forms using The Plus Addons for Elementor Gravity Form widget. It has a vast range of styling options to make modern-looking Input Fields. To style the Gravity Forms Input Fields, go to the Style tab Input Fields Styling.

How to use Gravity Forms in WordPress? ›

How to Use Gravity Forms
  1. Download Gravity Forms.
  2. Upload the Gravity Forms plugin to WordPress.
  3. Install and activate the plugin.
  4. Add the license key.
  5. Configure general plugin settings.
  6. Create a form.
  7. Add the form to your site.
Mar 10, 2022

Can you use Gravity Forms without WordPress? ›

Gravity Forms requires WordPress to work. To get a Gravity Form onto a site which is not using WordPress, you can host the form on another site (a WordPress site) and iFrame it into your non-WordPress site.

How do I customize my WordPress registration form? ›

To get started, click on the new Ultimate Member tab on your WordPress dashboard, then click on Forms. The following screen will contain three forms by default. We want to use the last one – Default Registration: If you want to customize this form, you can use the Edit option.

How do I customize my WordPress search form? ›

To get started, head over to SearchWP » Search Forms and click the 'Add New' button. This creates a new search form, ready for you to customize. For example, if you run a review website, then you might create a form that searches for product review posts and ignores other content like your blog posts and media.

How do you add a custom field in Gravity Form? ›

How to Add a New Field to an Existing Form Using the GFAPI
  1. Get the existing form.
  2. Determine the new field's ID.
  3. Create a new field object.
  4. Set new field's properties.
  5. Add the new field to the form object.
  6. Save the modified form object.
Mar 31, 2021

How do I use custom CSS Gravity Forms? ›

Do the following:
  1. From your site admin dashboard, click the Appearance option.
  2. Under Appearance, choose Customize.
  3. That will be take you into the theme customizer, where you can find the Additional CSS tool.
Mar 12, 2024

References

Top Articles
Latest Posts
Article information

Author: Nicola Considine CPA

Last Updated:

Views: 5894

Rating: 4.9 / 5 (69 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Nicola Considine CPA

Birthday: 1993-02-26

Address: 3809 Clinton Inlet, East Aleisha, UT 46318-2392

Phone: +2681424145499

Job: Government Technician

Hobby: Calligraphy, Lego building, Worldbuilding, Shooting, Bird watching, Shopping, Cooking

Introduction: My name is Nicola Considine CPA, I am a determined, witty, powerful, brainy, open, smiling, proud person who loves writing and wants to share my knowledge and understanding with you.