Embed an AI form on any WordPress page in 2 minutes
WordPress powers over 40% of the web, and Sift fits into any WordPress workflow. Whether you use the block editor, classic editor, or a page builder like Elementor, embedding the Sift widget is a one-step process.
YOUR_FORM_ID and YOUR_PUBLIC_KEY in the snippets below.Install Sift on WordPress
- 1
Open the page or post in the editor
From your WordPress admin, edit the page or post where you want the widget to appear. Both Gutenberg and the classic editor work.
- 2
Add a Custom HTML block
In Gutenberg, click the + button and search for Custom HTML. In the classic editor, switch to the Text tab. In Elementor, drag in an HTML widget.
- 3
Paste the snippet and publish
Paste the Sift embed code into the HTML block, replace the placeholders with your dashboard values, then publish or update the page.
<script src="https://siftforms.com/widget/v1.js" data-schema-id="YOUR_FORM_ID" data-api-key="YOUR_PUBLIC_KEY" async ></script>
Alternative install methods
Site-wide via header/footer plugin
Install a plugin like "Insert Headers and Footers" or "WPCode" and paste the snippet into the footer section. The widget will be available on every page (you control where it renders by adding it as a shortcode or block).
Direct theme edit (footer.php)
If you are comfortable editing theme files, paste the snippet into your child theme's footer.php just before the closing </body> tag. Always use a child theme to avoid losing changes on theme updates.
Tips for the best results
- Use WordPress page builders like Elementor or Beaver Builder by dragging in an HTML widget
- For multi-language sites with WPML, embed the same widget on translated pages — Sift handles input in any language
- Use Sift webhooks to push extracted form data into WP Users, custom post types, or WooCommerce orders
- Combine with Contact Form 7 by replacing the contact form entirely — Sift's free-text approach has higher completion rates
Troubleshooting
Widget code shows as plain text on the published page
You probably pasted into the Visual editor instead of the Text/HTML editor. In Gutenberg, use a Custom HTML block. In classic editor, switch to the Text tab before pasting.
Widget loads in preview but not on live site (cache)
Clear your WordPress caching plugin (WP Rocket, W3 Total Cache, etc.) and any CDN cache (Cloudflare, BunnyCDN). The widget script is fetched from siftforms.com so the script itself is not cached by your plugin.
Embed Sift on other platforms
Shopify
Embed the Sift widget on any Shopify page using the Custom Liquid section. Works on product pages, contact pages, landing pages, and theme-wide.
Squarespace
Embed the Sift widget on Squarespace pages using the built-in Code Block. Works on Squarespace 7.0 and 7.1, on any plan that supports Code Blocks.
Wix
Add the Sift widget to Wix using the Custom Element or HTML iFrame embed. Both options take less than 3 minutes to set up.
Ready to embed Sift on WordPress?
Create your first form in your dashboard, then come back and paste the snippet above.