AI Summary
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 forms you’ve embedded with the WPForms block in the block editor.
Requirements: To be able to style your forms in the block editor, you’ll need to have the following in place:
- WPForms version 2.0.5 or higher
- WordPress version 6.0 or greater
- Block editor or a theme with full site editing
Before getting started, ensure WPForms is installed and activated on your WordPress site and that you’ve verified your license.
Enabling Modern Markup
Modern markup in WPForms includes increased accessibility and lets you style your forms visually with the WPForms theme editor.
To activate form styling, you’ll need to enable modern markup from your WPForms settings page. For this, go to WPForms » Settings and select the General tab.

Next, scroll to the General section and ensure the Include Form Styling option is set to Base and form theme styling.

After that, check the Use Modern Markup checkbox to enable it.

Be sure to save your changes after enabling this option.
Customizing Your Forms
After enabling the modern markup option, create a new form and add the form to a page or post.
In the block editor, click on the form to open the WPForms block settings. Then, in the Form Theme section, click Edit Theme.
If the page has unsaved changes, WPForms saves it before it opens the theme editor. On a published page, it asks you first. Click Save & Continue to save the page and open the theme editor.
Your page opens in a new tab with the theme editor open on this form. Choose a theme or adjust the field, label, button, container, and background styles. For details on each option, see our guide on styling your forms.
When you’re done, click Save Changes at the bottom of the panel. Your styles apply only to the form in this block.
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 in the block editor.
Heads up! Some of the FAQs in this doc contain PHP code and is intended for developers. We offer this code as a courtesy but don’t provide support for code customizations or 3rd party development.
If you’d prefer a simpler approach to adding custom code to your site, please see WPBeginner’s guide to using WPCode.
I can’t find the Use Modern Markup option. How do I enable Modern Markup in WPForms?
Users with at least one form on their website before updating the WPForms plugin to version 1.8.1 will see the modern markup option.
If you just installed the WPForms plugin on your WordPress site, you won’t see the Use Modern Markup option on your settings page. Your site will be set to use the modern markup by default.
If you’d like to show this option on your settings page, you’ll need to add the following code snippet to your site.
How do I force WPForms to use modern markup?
If using the deprecated Credit Card field prevents you from enabling modern markup, you can bypass this restriction by adding a custom filter. To force WPForms to enable the modern markup option, add the following code snippet to your website.
After adding the code, you’ll be able to enable/disable modern markup from your WPForms settings page.
Where did the style settings in the WPForms block go?
Starting with WPForms 2.0.5, you style forms in the theme editor on the frontend of your site. The WPForms block now shows an Edit Theme button that opens it.
Styles you set in the block before the update still apply. They show in the theme editor as your starting point.
How can I make style changes not available in the theme editor?
If you would like to make other changes to your forms’ styles that aren’t available as options in the theme editor, you can use CSS Hero. This plugin enables you to change your site’s appearance on the frontend without writing any code.
Or, if you would like to style your forms with CSS, we recommend using WPCode to add your custom styles to your site.
That’s it! Now you know how to customize the look and feel of your WordPress forms using WPForms and the block editor.
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.