Gravity Forms is among the most popular WordPress form plugin. However, it lacks in the designing section. You need to manually add CSS and for that, you need to know which class to use for each part of the form. However, the task is no longer difficult as there is a free addon in the WordPress repository which you can use to change Background color without any need to code or change any theme file.
So, there are two methods to change the background color of your forms, one involves coding and the other one needs you to install an addon.
Steps to Change Background Color of Gravity Forms Using CSS
Connect to your server using Ftp software like Filezilla or Fireftp and open the style.css file of your activated theme. You can also navigate to Appearance -> Editor in WordPress dashboard and open the style.css file for editing.
Add the following code to file
body #gform_wrapper_**form ID here**
{
background : **form colour here** ;
}- Change **form ID here** with Gravity form ID.
- change **form color here** with the background color you want to apply.
Check out the below example
body #gform_wrapper_1
{
background: red;
}Click on the update file button to save your changes.
How to Add Background Colour using Styles and Layouts Addon
- Download and activate Styles and Layouts Plugin for Gravity forms addon from the WordPress repository. You can also learn more about this plugin here.
- Open the customizer in the post/page where you have added the form.

- Navigate to the Style and Layouts Gravity forms option and then select the gravity form.
- Let the page autosave and refresh.

- Now navigate to Styles and Layouts Gravity forms ->Form wrapper. Here you will all the settings that can be done for the form wrapper.

- Move to the Background Color option and select the color from the color picker. You can also enter the hex color code.
- It is also possible to add a background image. To do so go to the Background Image setting and click on add Image. Upload a new image using the WordPress media uploader or select one from the gallery.
- Click on Save and Close the customizer.
Here is the video I did to show you how it is done with Styles and Layouts for Gravity Forms Plugin
If you have any queries then leave a comment and I will try to resolve them.

0 Comments