WordPress is the most common place to embed a FormHug form. You can add a form to any page or post in minutes using the block editor — no plugins required. Embedded forms work well for lead capture, contact pages, newsletter signups, and event registrations.Documentation Index
Fetch the complete documentation index at: https://formhug.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Before You Start
Get your embed code from FormHug first: open the form → click Publish → Embed → copy the code. Keep it ready before opening WordPress.Method 1: Custom HTML Block (Recommended)
Open the Page or Post
In your WordPress dashboard, open or create the page where the form should appear.
Adjust the Height
Find the
height attribute in the embed code and set it to match your form’s length. A short contact form typically needs 400–500px; a longer survey needs 700px or more.The WordPress editor won’t render the form inline. Open the published page in a new tab to see exactly what visitors see.
Method 2: Shortcode
If you’re using the Classic Editor or a page builder that supports shortcodes, you can use:Responsive Sizing
The default embed code sets the form width to 100%, which works on desktop and mobile. To cap the width on wide screens, wrap the embed in a container:Related
Embed Options
All embed types available in FormHug
Embed in Webflow
Instructions for Webflow sites
Lead Generation Guide
Learn how to place forms on pages that convert visitors into leads
Contact Form Template
Start with a simple form for website inquiries