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