Setup & site building · Guide
How to Embed a Jotform in WordPress (Step by Step)

Short answer
To embed a Jotform in WordPress, open your form in Jotform, click Publish, choose Embed and copy the code. Then edit your WordPress page, add a Custom HTML block, paste the code and publish. If the form does not load, use the iframe code or the official Jotform plugin instead.
Key takeaways
- Copy the embed code from the Publish tab in the Jotform Form Builder.
- Paste it into a Custom HTML block, never a Paragraph block.
- Use the iframe code when scripts are stripped or blocked.
- Elementor and other builders use an HTML widget or code module.
- Style the form in Jotform's Form Designer and test it on mobile.
How do you embed a Jotform in WordPress?
You embed a Jotform in WordPress by copying the form's embed code from the Publish tab in Jotform and pasting it into a Custom HTML block on your page, or by using Jotform's WordPress plugin to insert the form.
There is no single right method. The best one depends on whether you use the block editor, a page builder like Elementor, or WordPress.com, and on how much control you want over the form's look.
This guide walks through each option step by step. It also covers the common problems, like a form that shows on desktop but not on mobile, or one that loads with a scroll bar inside the page.
What do you need before you start?
Before you embed anything, you need a finished form in your Jotform account, editor access to the WordPress page where it will live, and a recent backup in case you change anything in your theme.
Check these first:
- A published Jotform form. Build and test it in Jotform, including notifications and conditional logic.
- A WordPress user with Editor or Administrator rights. Lower roles may not be allowed to add HTML. Our guide to WordPress user roles explains why.
- Your site type. Self-hosted WordPress lets you add scripts and plugins. Some WordPress.com plans limit custom code and plugins.
- The target page. Decide whether the form goes on a new page, an existing page, a post or a sidebar.
If you need a fresh page for the form, follow our guide on how to add a page to WordPress first.
Which embed method should you choose?
Most people should paste the standard embed code into a Custom HTML block, use the iframe code if scripts are stripped or conflict with the theme, and use the plugin only if they want a shortcode-style workflow.
| Method | Best for | Pros | Watch out for |
|---|---|---|---|
| Embed code (JavaScript) | Most self-hosted sites | Auto-resizes, easy updates | Can be blocked by script optimisers |
| iFrame code | WordPress.com, strict security setups | Very reliable, isolated from theme CSS | Needs manual height or resize script |
| Jotform WordPress plugin | Users who prefer a shortcode or button | Insert forms without copying code | One more plugin to maintain |
| Form link or lightbox | Pop-up or button-based forms | Keeps the page light | Visitors leave or open an overlay |
Jotform's own guide to embedding forms for WordPress users lists the methods it currently supports, so check it if the options in your account look different.
How do you copy the embed code from Jotform?
Open your form in the Jotform Form Builder, click the Publish tab, choose Embed, and copy the code shown, which links your form to the page through a small script.
Step by step:
- Log in to Jotform and open My Forms.
- Click the form and choose Edit Form.
- At the top of the builder, click Publish.
- Select Embed in the left menu.
- Click Copy Code.
Under the same Publish tab you will also see a Platforms list. Choosing WordPress there gives you instructions tailored to WordPress, including the alternative iframe code.
Keep the copied code in your clipboard, or paste it into a plain text file so you can find it again.
How do you paste Jotform code into the block editor?
In the WordPress block editor, add a Custom HTML block where you want the form, paste the Jotform embed code inside it, preview the block, and then update or publish the page.
Here is how:
- Go to Pages and open the page in the editor.
- Click the + inserter and search for Custom HTML.
- Add the block in the spot where the form should appear.
- Paste the Jotform code into the block.
- Click Preview in the block toolbar to see the form.
- Click Update or Publish.
The Custom HTML block documentation on WordPress.org explains how the block treats code. If HTML blocks are new to you, see our guide on how to add HTML in WordPress.
Do not paste the code into a Paragraph block. WordPress will show it as plain text instead of loading the form.
How do you embed a Jotform with the iframe code?
If the standard script does not load, go back to Publish, choose the WordPress option or the embed source options, copy the iframe version of the code, and paste that into a Custom HTML block instead.
The iframe loads your form in its own frame. That isolates it from your theme's CSS and from plugins that rewrite or delay scripts.
The trade-off is height. If the frame is too short, visitors see a scroll bar inside the form. Jotform's iframe code usually includes a small script to resize it, but if that script is removed, set a fixed height that fits the longest version of your form.
On WordPress.com plans that do not allow custom scripts, the iframe option is often the one that works. Check your plan details if your code disappears after saving.
How do you use the Jotform WordPress plugin?
Install the Jotform plugin from Plugins > Add New, activate it, connect your Jotform account if asked, and then insert a form into a page using the button or shortcode the plugin adds to the editor.
Jotform publishes an official plugin, listed on WordPress.org as Jotform Online Forms. Read the plugin page to confirm it works with your WordPress version before you install it.
The steps are usually:
- Go to Plugins > Add New Plugin and search for Jotform.
- Install and activate the official plugin.
- Open a page or post in the editor.
- Use the Jotform block, button or shortcode to pick the form.
- Save the page and check it on the front end.
The plugin is handy if several people add forms and you do not want them handling raw code. If you only need one form, the Custom HTML method avoids an extra plugin.
How do you embed a Jotform in Elementor or other page builders?
In Elementor, drag an HTML widget onto the page, paste the Jotform embed or iframe code into its content box, and update the page; other builders work the same way with their own HTML or code module.
For Elementor:
- Open the page with Edit with Elementor.
- Search the widget panel for HTML (see Elementor's HTML widget help page).
- Drag it into the section where the form should go.
- Paste the code into the HTML Code box.
- Click Publish or Update.
Elementor's editor may not run the form's script in the live preview. Always check the real page in a new tab. Our guide on how to use Elementor in WordPress covers the editor basics.
Divi, Beaver Builder and WPBakery all offer a Code, HTML or Raw HTML module that accepts the same code.
How do you show a Jotform as a pop-up or button?
Instead of placing the full form on the page, you can use Jotform's lightbox or feedback button embed options, or simply link a button to the form's shareable URL.
In the Publish tab, look for options such as Lightbox, Popup or Feedback Button. Each gives you a different snippet that you paste into a Custom HTML block the same way.
A simple alternative is a normal WordPress Button block linked to the form's direct link. This keeps the page light and avoids script conflicts completely.
Why is your embedded Jotform not showing?
An embedded Jotform usually fails to show because the code went into the wrong block, a caching or optimisation plugin delayed its script, your plan stripped the code, or a security policy blocked the Jotform domain.
Work through these checks:
- Wrong block. Make sure the code is in a Custom HTML block or HTML widget, not a Paragraph or Code block.
- Script optimisation. Plugins that delay or combine JavaScript can break the embed. Exclude Jotform scripts, or switch to the iframe code.
- Cache. Clear your page cache and any CDN cache after editing. See how to clear cache in WordPress.
- Code stripped on save. If the code vanishes, your user role or plan may not allow unfiltered HTML.
- Content Security Policy. Strict security headers can block outside frames and scripts. Allow the Jotform domains you use.
- Form disabled. Check the form is enabled in Jotform and has not hit a submission limit on your plan.
Your browser's developer console often names the exact blocked file. The MDN guide to the browser console explains how to open it.
How do you style an embedded Jotform to match your site?
Style the form inside Jotform rather than in WordPress, using the Form Designer for colours, fonts and layout, because your theme's CSS cannot reach inside an iframe.
Open the form in Jotform and click the paint roller icon to open the Form Designer. Change the theme, button colours and fonts there.
Match your brand colours and use a font that looks close to your site's body font. Remove the form's own background if you want it to blend into the page.
Test on a phone after every change. A form that looks fine on a wide screen can be cramped on mobile.
How do you test the form after embedding it?
Test your embedded form by submitting it yourself on desktop and mobile, checking that notification emails arrive, confirming the entry appears in Jotform, and watching that the thank-you message or redirect works.
A short checklist:
- Fill in every required field and submit.
- Check the confirmation message or redirect page.
- Look for the notification email, including in spam.
- Open Submissions in Jotform to see the entry.
- Repeat on a phone and in a private browser window.
Jotform sends its emails from its own servers, so WordPress mail settings do not affect them. If emails go missing, check the notification settings in Jotform.
Spam can still reach embedded forms. Turn on Jotform's CAPTCHA or spam protection options, and read our guide on how to stop contact form spam in WordPress for wider tips.
Frequently asked questions
Can I embed a Jotform on WordPress.com?
Usually yes. Some WordPress.com plans strip custom scripts, so the iframe version of the embed code tends to work best there. Plans that allow plugins can also use the official Jotform plugin. Check your plan details if the code disappears after saving.
Do I need the Jotform plugin to embed a form?
No. Pasting the embed code into a Custom HTML block works without any plugin. The plugin is optional and mainly helps if you prefer picking forms from a list instead of copying code.
Why does my Jotform show a scroll bar inside the page?
The iframe is shorter than the form. Use the standard script embed, which resizes automatically, or keep the resize script that comes with the iframe code, or set a taller fixed height for the frame.
Will form submissions be stored in WordPress?
No. Submissions are stored in your Jotform account, not in your WordPress database. You view and export them from the Submissions area in Jotform.
Does an embedded Jotform slow down my page?
It adds some outside scripts and a frame, so there is a small cost. Placing the form lower on the page or using a button that opens the form can keep the first view of the page fast.
Sources
- A Guide to Embed Forms for WordPress Users Jotform
- Embed Jotform in WordPress Using the Plugin Jotform
- Jotform Online Forms plugin WordPress.org
- Custom HTML block WordPress.org
- What are browser developer tools? MDN Web Docs
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
Related guides
About the editors
Researched from the primary sources listed above and checked against our editorial rules before publishing.


