How to Embed HTML Forms in WordPress
Posted: Tue Feb 18, 2025 5:23 am
HTML forms are usually hand-coded, so you don't have a drag-and-drop editor to modify your form.
Luckily, there are form plugins that make setting up HTML forms more foolproof. One of the best options is the HTML Forms plugin . This plugin is great for setting up simple contact forms that help you collect information from web users.
The form code editor in HTML Forms
The advantage is that you don't need to know how to code to use HTML forms.
Adding a new field is easy. Just choose one of the available options, and HTML Forms will prompt you to adjust the field data.
Adding a dropdown field in HTML Forms
After clicking the “Add Field to Form” button, HTML Forms converts the data into an HTML estonia cell phone number list code snippet and places it in the “Form Code” area.
And that's it! Don't forget to click the "Save Changes" button to save your progress.
Now it's time to publish the form.
HTML forms allow you to easily embed your form into any post, page, or widget area. To do this, you will need the form shortcode . You can find your form shortcode at the top of the “Edit Form” panel.
HTML Forms' shortcode
Let's copy this shortcode to the clipboard.
You can then open a page or post where you want to display the HTML form. For this tutorial, we will add the form to our “Contact” page.
Once in the block editor, simply click the “+” button and search for “Custom HTML”, then click on it to add it to your page.
The custom HTML block
You can then paste the shortcode into the “Custom HTML” block.
The WordPress Block Editor won't show you the form. But don't worry. It will appear on the page when you save it.
Adding HTML Forms shortcode
So let's hit the "Record" button to see it in action.
Here's what it might look like on your site.
Luckily, there are form plugins that make setting up HTML forms more foolproof. One of the best options is the HTML Forms plugin . This plugin is great for setting up simple contact forms that help you collect information from web users.
The form code editor in HTML Forms
The advantage is that you don't need to know how to code to use HTML forms.
Adding a new field is easy. Just choose one of the available options, and HTML Forms will prompt you to adjust the field data.
Adding a dropdown field in HTML Forms
After clicking the “Add Field to Form” button, HTML Forms converts the data into an HTML estonia cell phone number list code snippet and places it in the “Form Code” area.
And that's it! Don't forget to click the "Save Changes" button to save your progress.
Now it's time to publish the form.
HTML forms allow you to easily embed your form into any post, page, or widget area. To do this, you will need the form shortcode . You can find your form shortcode at the top of the “Edit Form” panel.
HTML Forms' shortcode
Let's copy this shortcode to the clipboard.
You can then open a page or post where you want to display the HTML form. For this tutorial, we will add the form to our “Contact” page.
Once in the block editor, simply click the “+” button and search for “Custom HTML”, then click on it to add it to your page.
The custom HTML block
You can then paste the shortcode into the “Custom HTML” block.
The WordPress Block Editor won't show you the form. But don't worry. It will appear on the page when you save it.
Adding HTML Forms shortcode
So let's hit the "Record" button to see it in action.
Here's what it might look like on your site.