How to embed another web page with an iframe
In TeleportHQ, an iframe (a window that shows another web page inside your page) lets you embed things like a booking calendar, a Google Form or a video. Drag Iframe from Elements → Primitives → Media onto your page, then paste the page's address into the src field in the Attributes section. The other website must allow being embedded.
Before you start
- Find the embed address of what you want to show. Many services give you an "Embed" option with a code like
<iframe src="https://...">. You only need the address insidesrc="...". - For YouTube and Vimeo, follow How to add a YouTube or Vimeo video. For maps, use How to add a Google Map.
Steps
- In the left sidebar, click Elements.
- On the Primitives tab, scroll to the Media group.
- Drag Iframe onto the canvas, where the embedded page should go. Or select that spot's container and click Iframe.
- With the iframe selected, in the right panel, find the Attributes section near the top.
- In src, replace the sample address with yours. For example,
https://calendly.com/your-bakery/cake-tasting. - Press Enter. The embedded page loads on the canvas.
- In the right panel, open Size and set the width and height. A new iframe is 320 × 200 pixels, which is usually too small. For example, set the width to
100%and the height to700px.
Check that it worked
The embedded page shows inside the iframe on the canvas. On the canvas, clicks select the iframe. To click inside the embedded page, go to the Iframe Settings section and click Preview. The banner "You are in live preview mode." appears; click Exit Preview to go back to editing.
Troubleshooting
The iframe is blank or says the site "refused to connect" The other website doesn't allow being shown inside other sites. There is nothing TeleportHQ or you can change about that. Use the service's own embed code with Code Embed, or link to the page instead. See How to add links and buttons.
The embedded page is cut off or has scrollbars Make the iframe bigger in Size. The page inside the iframe can't resize the iframe for you.
The embed code has more than an <iframe>, for example a <script> An iframe only takes an address. Paste the whole code into a Code Embed element instead. See How to add your own HTML or JavaScript with Code Embed.
Good to know
- allow in the Attributes section gives the embedded page browser permissions, for example
camera; microphonefor a video-call widget. Copy it from the service's embed code if it has one. - full screen in Attributes lets the embedded content go full screen.
- A new iframe starts with a sample YouTube video in src. Replace it with your own address.
- The embedded content loads from the other website, so it only shows when that site is online.