How to embed an iframe in Carrd
Carrd has an Embed element. Set Type to IFRAME and paste a URL, or set Type to Code and paste iframe HTML. The Embed element needs Pro Standard or higher, and it shows nothing in the builder until you publish.
3 min read · Updated
- Raw iframe code
- Yes, with Type set to Code
- IFRAME type
- Yes, with a URL
- Plan
- Pro Standard or higher
Steps
Step 1: Click Add Element, then Embed
Carrd adds a new Embed element to your site.
Step 2: Set Type to IFRAME and set URL
Use the full URL of the content. To paste iframe HTML, set Type to Code and paste it in Code.
Step 3: Set Width and Height
These settings are optional. They apply to the IFRAME type.
Step 4: Choose an Aspect Ratio setting
Ignore keeps a fixed height on mobile. Strict keeps the shape. Flexible keeps the shape with a little more height on mobile.
Step 5: Publish your site
The Embed element shows nothing in the builder. Publish the site to see the frame.
Check your URL first
If the page blocks framing, the Embed element shows an empty box or an error.
Limits
The Embed element needs Pro Standard or higher. Pro Lite does not include embeds.
The Embed element shows nothing in the builder, so you must publish to see it.
A syntax error in script code can break the site, so make sure your code is valid.
Troubleshooting
- The frame is blank on the published site
The page sends X-Frame-Options or a CSP frame-ancestors header. Test the URL to see which header blocks it.
Blank iframe, no error- "Refused to connect"
The site does not allow other sites to frame it. Only the site owner can change that header.
"Refused to connect": cause and fix- The site comes up blank after you add code
The code has an error. Make sure your script code is valid, and look for the error in the browser console.
Blank iframe, no error
- Carrd Docs: Embedding IFRAMEs · carrd.com
- Carrd Docs: Embedding Custom Code · carrd.com
- Carrd Docs: Pro Plans · carrd.com
- Carrd Docs: Troubleshooting · carrd.com