Styling Your Forms

Would you like to easily customize the look and feel of your WordPress forms? Our form styling feature lets you style your forms without writing any CSS.

This tutorial will show you how to style your forms with the WPForms theme editor, right on your site.

Requirements: To be able to style your forms in the theme editor, you’ll need to have the following in place:

  • WPForms version 2.0.5 or higher
  • WordPress version 6.0 or greater
  • Use Modern Markup turned on, with Include Form Styling set to Base and Form Theme Styling in WPForms » Settings » General

Customizing Your Form Themes

WPForms styles your forms on the frontend of your site, on the page where the form appears. You see each change on your real form as you make it.

Opening the Theme Editor

To open the theme editor from the form builder, go to Settings » Themes and click the Edit Your Theme button. Your form preview opens in a new tab with the theme editor already open.

The Themes item in the form builder Settings panel

You can also open it from the form preview page. Click Edit Theme in the notice above your form.

The Edit Theme link on the form preview page

On any page that shows your form, click Edit Form Theme in the WordPress admin bar.

Hero banner with the headline 'Order a Custom Cake' and subheading 'Order a custom cake from Sullie's Bakery' inviting users to order a cake.

If you embed your form with the block editor, Elementor, or Divi, select the form and click Edit Theme in its settings. For details, see our guide on styling your forms in the block editor.

The Form Theme panel opens on the right side of the page. Here you’ll find options to customize the color theme, form fields, labels, buttons, and container and background styles without writing any CSS.

The Form Theme panel open next to a form on the form preview page

Choosing Where Your Styles Apply

The page where you open the theme editor decides which embeds your changes affect:

  • Form preview page: Your changes become the form’s default theme. Every page that embeds the form uses it, unless that page has its own style.
  • Any other page: Your changes apply only to the form on that page. The same form keeps its look on other pages.

Note: Changing the settings of a custom theme updates that theme everywhere it’s used. To give one page its own look, pick a different theme on that page first.

We’ll cover each section of the panel below.

Themes

The Themes setting allows you to choose a predefined color theme to automatically update the style of your form’s fields, labels, buttons, container, and background.

To apply, simply click on your preferred theme, and it will instantly adjust the colors of your form’s fields, labels, buttons, container, or background.

The Themes list in the Form Theme panel

If you customize individual settings after selecting a stock theme, these changes will be saved as a new custom form theme, named after the original with (Copy) at the end. You can rename it in the Theme Name field. This new theme will be added to your list of available themes, and it can be applied to any form just as you would with any other form theme.

Note: For more details on how theme styles work in WPForms, be sure to check our tutorial on using form themes.

Field Styles

Under the Field Styles section, you’ll find the options to adjust size, border, border size, border radius, and colors for your form fields. Below we’ve explained the available field options.

  • Size: Adjusts the overall size of your form fields. Options include Small, Medium, and Large.
  • Border: This setting allows you to add or remove a border from your form fields. Options include None, Solid, Dashed, or Dotted.
  • Border Size: Sets the thickness of your field borders, in pixels (px).
  • Border Radius: Use this to apply rounded corners to your form fields for a softer, more modern appearance. The value is in pixels (px).
Field Styles options in the Form Theme panel

Next, you’ll find options to update the Background, Border, and Text colors of your form fields.

To change a color, click the color swatch to open the color picker. You can either choose a color visually or enter a specific hex code for precise control.

Label Styles

In the Label Styles section, you’ll find the option to update the size of your form labels. Available size options include Small, Medium, and Large.

Label Styles options in the Form Theme panel

You’ll also find the option to update colors for labels, sublabels, and error messages. Below we’ve explained the available label color options.

  • Label: This option controls the text color of your main field label.
  • Sublabel: This option controls the color of field sublabels and hints that appear when WPForms suggests values to users in the frontend.
  • Error: The color of the text that shows if an error occurs when users fill out your form.

Button Styles

The Button Styles settings allow you to change the size, border, border size, border radius, and colors for your buttons. Below we’ve explained the available button options.

  • Size: This option sets the button’s size. Options include Small, Medium, and Large.
  • Border: This setting allows you to outline your buttons. Options include None, Solid, Dashed, or Dotted.
  • Border Size: Sets the thickness of your button borders, in pixels (px).
  • Border Radius: This adjusts the roundness of your button corners for a softer or sharper look. The value is in pixels (px).

You’ll also find options to update the Background, Border, and Text colors of your button.

Button Styles options in the Form Theme panel

Note: The background color you set for your button will also be used as the default accent color. This means the focus state color for fields, progress bars, radio buttons, and checkboxes will use the button’s background color.

Container Styles

The Container Styles settings allow you to customize the padding, border style, border size, border radius, shadow, and colors for your form’s container. Below we’ve detailed the available container options.

  • Padding: This option sets the space inside the form container’s borders. You can increase or decrease this value to adjust the spacing around your form content.
  • Border: This setting lets you choose the outline of your container, with options for None, Solid, Dashed, or Dotted.
  • Border Size: Determines the thickness of your container’s border, in pixels (px).
  • Border Radius: This adjusts how rounded the corners of your container are, adding a softer or more defined edge to your form’s appearance. The value is in pixels (px).
  • Shadow: Choose the size of the shadow effect for your container to add depth to your form’s design, with options ranging from none to large.
  • Border (color): Sets the color of your container’s border.

Note: Container Styles and Background Styles need a paid WPForms license. In WPForms Lite, these sections show a PRO badge, and most stock themes are locked.

Container Styles options in the Form Theme panel

Background Styles

The Background Styles settings control what shows behind your form. Choose an option from the Style dropdown:

  • None: No background.
  • Solid: A single background color.
  • Gradient: 2 colors that blend into each other.
  • Image: An image from your Media Library.
  • Stock Photo: A photo from the WPForms stock photo library.

For a gradient, pick a Direction. Options include Vertical, Horizontal, Diagonal, and Radial. Then set the Color Start and Color End.

Gradient background options in Background Styles

For an image, select Image and click Choose Image. Your Media Library opens, so you can pick an image or upload a new one. If you select Stock Photo, you’ll see a selection of stock photos to choose from.

Image background options and the Choose Image button

Note: If it’s your first time selecting Stock Photo, you’ll see an overlay prompting you to download the stock image library. Click Continue on this notice to begin the download, after which you can choose from an array of stock photos.

Once you have selected your image, the Background Styles section offers additional customization options:

  • Position: This setting lets you align your background image within the form by selecting options such as Top Center, Bottom Center, and more to get the perfect placement.
  • Repeat: Choose how your background image repeats. The options are No Repeat for a single image, Tile to repeat the image across the entire background, Repeat X for repeating across the width, and Repeat Y for repeating down the length.
  • Size: This adjusts how your background image fits within the form. Cover ensures the image covers the entire background, adapting to the form’s size. If Dimensions is selected, you can specify the exact width and height for your image.
  • Color: Sets a background color. It shows when no image is used.

Advanced Styling

In the Advanced section, you’ll find two useful options for styling your forms further.

  • The Custom CSS box lets you add your own CSS classes for additional customization. To learn more, check out our tutorial on adding custom CSS classes.
  • The Copy / Paste Style Settings box holds your form’s style settings as code. Copy it to reuse the same styles on another form, or paste settings from another form here. Pasting replaces your current style settings.
Custom CSS and Copy / Paste Style Settings in the Advanced section

When you’re happy with your changes, click Save Changes at the bottom of the panel.

The Save Changes button in the Form Theme panel

Testing Your Forms

The last step is to run a quick test to ensure your form looks and works how you expect.

To test it out, you’ll simply need to submit an entry to your form. To learn more, please check our full form testing checklist.

Frequently Asked Questions

Below, we’ve answered some of the most common questions we receive about styling your forms.

Will my form keep its styles when I embed it on different pages?

Yes. The styles you save on the form preview page are your form’s default theme. Every page that embeds the form uses them.

If you save styles in the theme editor while viewing another page, those changes apply only to the form on that page. All other pages keep the default theme.

Where did the style settings in the form builder, block editor, and Elementor go?

Starting with WPForms 2.0.5, you style forms in the theme editor on the frontend of your site. The form builder now shows an Edit Your Theme button, and the WPForms block, the Elementor widget, and the Divi module show an Edit Theme button. Each one opens the theme editor.

Styles you set before the update still apply. They show in the theme editor as your starting point.

Can I style forms embedded with page builders like Divi or Elementor?

Yes. Select the WPForms widget or module and click Edit Theme, or open the page and click Edit Form Theme in the WordPress admin bar. Your changes apply to the form on that page.

Why did my form change on another page too?

You probably edited a custom theme that other pages also use. Changing a custom theme’s settings updates it everywhere. To style one page on its own, pick a different theme on that page first, then make your changes.

Why don’t I see the Edit Form Theme option?

The theme editor only shows when Use Modern Markup is turned on and Include Form Styling is set to Base and Form Theme Styling in WPForms » Settings » General. You also need permission to edit the form.

If the form has Lead Form Mode turned on, update the Lead Forms addon to version 1.10.0 or higher. A lead form that already has Lead Forms style settings keeps them until you save a theme for it in the theme editor, or turn off Use Legacy Theme in its Lead Forms settings.

That’s it! Now you know how to customize the look and feel of your WordPress forms using WPForms.

Next, would you like to use icons to improve your form’s display? Be sure to check our tutorial on using icon choices to learn how.

The Best WordPress Drag and Drop Form Builder Plugin

Easy, Fast, and Secure. Join over 6 million website owners who trust WPForms.