Put your app on your website
Add your Frontvine app to a page on your existing website with a short code that fits its height to your app.
Get the embed code
- Publish your app first. Only published apps can be embedded. See publish your app.
- Open the Publish section and find the Share box.
- Under Put it on your website (fits its height automatically), click Copy.
The Share box has two codes:
| Code | Best for |
|---|---|
| Put it on your website (fits its height automatically) | Most websites. The frame fits its height to your app, so visitors don't get a second scroll bar. |
| Or as a fixed-size frame (Wix, Notion, class pages) | Website builders that only accept a frame. It's 600 pixels tall; change the height in your website builder if you need to. |
Private and members-only apps can't be embedded. For them, the Share box shows only the link and QR code, and codes copied earlier stop working.
Paste it into your website
Open the page you want in your website builder and add a block for custom code. It's often called Code, Custom HTML or Embed HTML. Paste the code there and save or publish the page.
Click Where to paste it under the codes in the Share box for steps in popular website builders.
Some page tools, like Notion (its /embed block) and Google Sites (Embed, then By URL), only accept a link. Use the address inside the fixed-size frame code: the part between the quotes after src=, which ends in /embed/ and your app's address name.
How the height fits
With the first code, your app tells the frame how tall its content is, and the frame grows to match. When more content appears, for example after a visitor picks a date, the frame grows with it.
It also shrinks back when content gets shorter, for example when a visitor closes a long list. One exception: if your app sizes itself to the screen (it fills the frame's height whatever is in it), the frame only grows, so it can't keep shrinking.
The fixed-size frame doesn't resize. If your app gets cut off, make the frame taller in your website builder, or use the first code instead.
Sign-in and checkout open in a new tab
For visitors' security, browsers keep a frame on another website apart from the rest of the web. So inside an embed:
- Paying: when a visitor buys something, checkout opens in a new tab.
- Signing in: when a visitor needs to sign in, your app opens full screen in a new tab, where they can sign in.
- Full screen: the corner button has Open full screen ↗ to open the app in its own tab.
Everything else, like forms, quizzes and booking a free session, works right inside the frame.
Optional settings
You can add these to the first code, inside the script tag, next to data-app:
| Add | What it does |
|---|---|
| data-source="homepage" | Names this spot, so visits from it show up separately in your analytics. Use any short name. |
| data-height="800" | The starting height in pixels, before the app reports its own height. |
| data-title="Book a session" | A label for screen readers. The code already includes your app's name. |
| data-room="your-event-code" | Opens the app for one event. See events. |
If the embed doesn't show
- Check that the app is published, that Who can find it isn't set to Private, and that it isn't limited to members. See who can find your app.
- If you changed your app's address, copy the new code: the old one points to the old address.
- Make sure the whole code was pasted, from the first < to the last >.
- Some website builders only show custom code on the published page, not in the editor. Check the live page.
Still stuck? See troubleshooting.
Still stuck? Email service@frontvine.com. Something missing or unclear here? .