How to Embed a UniLink Page in an iFrame (Display Your Page on Any Website)

By UniLink May 02, 2026 10 min read
How to Embed a UniLink Page in an iFrame (Display Your Page on Any Website)


How to Embed a UniLink Page in an iFrame (Display Your Page on Any Website)

Embed your UniLink page inside any website, portfolio, or tool that accepts HTML — a single iframe tag is all it takes to display your full link-in-bio page inline.

  • Copy the iframe snippet, replace the URL with your UniLink page address, and paste it into any HTML editor.
  • Both unil.ink/username and custom domain URLs work as the iframe source — HTTPS is required.
  • Set width="100%" and a fixed height for the best cross-device display in your host site's layout.

Embedding your UniLink page in another website lets visitors browse your links, products, and content without leaving your portfolio, Notion workspace, or client presentation. It is useful when your primary web presence is somewhere other than UniLink — a WordPress site, a Squarespace portfolio, or a custom HTML page — but you want to display your dynamic link hub inline without duplicating content. The embed is a live view of your actual UniLink page, so any updates you make in the dashboard appear automatically everywhere the iframe is embedded.

What iFrame Embedding Does

An HTML iframe element loads an external web page inside a rectangular region of your page. When you point an iframe at your UniLink URL, visitors see your full UniLink page — with your links, blocks, theme, and branding — rendered inside your host site. Clicks on links within the iframe open in the iframe's context by default; you can add target="_blank" behavior to individual links in your UniLink dashboard to ensure clicks open in a new tab rather than navigating the iframe itself.

UniLink pages load over HTTPS, which is a requirement for iframe embedding on any HTTPS-hosted site. If your host site runs on HTTP (uncommon today but still seen on some self-hosted setups), embedding an HTTPS UniLink page may trigger a mixed-content warning and block the iframe. The solution is to ensure your host site itself uses HTTPS — modern browsers block HTTP iframes inside HTTPS pages by default. UniLink pages do not set restrictive X-Frame-Options headers, so embedding is permitted from any origin without special configuration.

The iframe approach has a key limitation to understand: the embedded page is visually isolated from your host site's layout. Your host site's CSS, fonts, and JavaScript do not affect the rendered UniLink page inside the iframe, and the UniLink page's scripts cannot access the host site's DOM. This isolation is actually a feature from a security standpoint — it means embedding a UniLink page cannot interfere with your host site's functionality. But it does mean you cannot inject additional styles or scripts into the embedded view from outside the iframe.

How to Get Started

  1. Find your UniLink page URL — either your default URL at https://unil.ink/username or your custom domain URL if you have one connected.
  2. Copy the basic iframe snippet: <iframe src="https://unil.ink/username" width="100%" height="600" frameborder="0"></iframe>. Replace username with your actual username.
  3. Open the HTML editor of your host site — the "Custom HTML" block in WordPress, the "Embed" element in Squarespace, the "/Embed" block in Notion, or the raw HTML of your static site.
  4. Paste the iframe snippet into the editor. Save and preview the page to confirm your UniLink page renders inside the iframe.
  5. Adjust the height attribute to match your page's content length. If your UniLink page is long, increase the height value (e.g., height="900") to avoid scroll bars inside the iframe.

How to Use iFrame Embedding

  1. Basic embed: Paste <iframe src="https://unil.ink/username" width="100%" height="600" frameborder="0"></iframe> into any HTML editor. The frameborder="0" attribute removes the default browser border around the iframe.
  2. Responsive height: For pages where content length varies, wrap the iframe in a div with position: relative; padding-bottom: 150% and set the iframe to position: absolute; top:0; left:0; width:100%; height:100% for a fully fluid embed.
  3. Fixed-width centered embed: Wrap the iframe in a div with max-width: 420px; margin: 0 auto; to match the phone-width layout that UniLink pages are optimized for — this avoids stretching the design on wide screens.
  4. Notion embed: In Notion, type /embed, paste your https://unil.ink/username URL into the embed dialog, and Notion renders it as an inline frame. Resize the block in Notion to control the displayed height.
  5. Client presentation: In Google Slides or Canva presentations that support web embeds, use the embed or iframe option and paste your UniLink URL. Visitors can interact with your links during the presentation without leaving the slide deck viewer.

Key Settings

SettingWhat It DoesRecommended
srcThe URL of the UniLink page to embedUse your full HTTPS URL — either unil.ink/username or your custom domain
widthHorizontal size of the iframe in pixels or percentageUse 100% for responsive layouts; cap with a max-width: 420px wrapper to match mobile page design
heightVertical size in pixels — does not auto-resize to contentSet to your page's approximate pixel height; increase if content is cut off
frameborderControls the browser's default border around the iframeAlways set to 0 for a clean embed without a visible border
loading="lazy"Defers iframe load until the user scrolls to itAdd loading="lazy" for embeds below the fold to improve host page load speed
Tip: Wrap your iframe in a container div with max-width: 420px; margin: 0 auto; to pin the embed to a mobile-friendly width. UniLink pages are designed for phone-width viewports, and a full-width iframe on a desktop screen stretches the layout. The narrow wrapper keeps your embedded page looking exactly as intended without any changes to your UniLink design.

Get the Most Out Of iFrame Embedding

Use iframe embedding in client proposals and case studies to show your UniLink page live inside the proposal document. Tools like Notion, Coda, and GitBook all support iframes — paste your UniLink URL as an embed and the client sees your actual working page rather than a static screenshot. This is especially effective for creator portfolios: the client can click through your links and explore your content as part of reviewing the proposal, without you needing to share a separate URL.

For WordPress sites, the classic block editor supports a Custom HTML block where you can paste the iframe code directly. The block editor's Embed block also supports arbitrary URLs — try pasting your UniLink URL there first, and if it auto-detects as an oEmbed (see the oEmbed article for details), it will render as a formatted card instead of a raw iframe. If you want the full interactive page rather than a card, use Custom HTML with the explicit iframe tag.

The iframe does not resize automatically to match your UniLink page's content height — this is a fundamental browser security restriction (cross-origin iframes cannot communicate their height to the parent page without a postMessage setup). If your UniLink page grows significantly as you add blocks and links, remember to update the height attribute in your iframe embed. A height that is too short shows internal scroll bars inside the iframe, which creates a poor user experience.

For pages where you want the embedded UniLink page to look completely seamless — no scroll, no cut-off — consider using the iframe as a full-section embed rather than an inline element. Set the iframe to width: 100%; height: 100vh; inside a full-height section of your page. This gives visitors the full UniLink experience in a section of your site while keeping your site's header and navigation visible above.

Troubleshooting

ProblemCauseFix
Iframe shows a blank white areaHost site is on HTTP while UniLink page is HTTPS, causing a mixed-content blockEnable HTTPS on your host site — most hosting providers offer free SSL via Let's Encrypt
UniLink page content is cut offThe iframe height value is smaller than your page's full content heightIncrease the height attribute value until all content is visible without internal scroll bars
Links inside the iframe navigate within the iframe instead of opening in a new tabDefault iframe link behaviour opens links in the same frameIn your UniLink dashboard, set individual links to open in a new tab via the link settings, or add target="_blank" to the iframe element to apply globally
Embed not rendering in NotionNotion's embed block has stricter iframe allow-listing than a raw HTML embedUse the Notion /embed command and paste the full UniLink URL — Notion may auto-detect and embed it; if not, try an iFrame embed tool that generates a Notion-compatible embed URL
  • Zero configuration required — a single HTML tag embeds your live, interactive UniLink page anywhere
  • Updates to your UniLink page appear automatically in all iframe embeds without changing the embed code
  • Works in any platform that accepts HTML: WordPress, Webflow, Squarespace, custom sites, Notion, and more
  • No additional cost or API key — iframe embedding uses your public UniLink URL directly
  • Height must be set manually — iframes do not auto-resize to content height without custom JavaScript
  • Host site CSS and fonts do not carry into the iframe — the embedded page always uses your UniLink theme
  • Some platforms block iframes from third-party domains by default — check your host platform's embedding policy
Does embedding a UniLink page in an iframe affect SEO?

The embedded UniLink page's content is not indexed by search engines through the iframe — search engines index the page at its original URL (unil.ink/username), not the embedded version. Your host site will not gain SEO value from the embedded content. For SEO purposes, link to your UniLink page rather than (or in addition to) embedding it.

Can visitors on mobile use an embedded UniLink page normally?

Yes — UniLink pages are responsive and work on mobile within an iframe. However, iframes on mobile can sometimes create a double-scroll experience (the page scrolls inside the iframe rather than the parent page). Setting a fixed height that shows the full page content without internal scroll eliminates this issue.

Can I embed a private or password-protected UniLink page?

If your UniLink page requires a password, the iframe will display the password prompt. Visitors would need to enter the password inside the iframe to see the content. For a seamless embed, only embed public pages that do not require authentication.

Will the iframe show my UniLink header and navigation?

The iframe shows exactly what a visitor would see if they navigated to your UniLink URL directly — including any header elements, profile image, and navigation you have configured. There is no stripped-down embed mode; the full page renders.

Can I use my custom domain URL as the iframe src?

Yes — if you have a custom domain connected to your UniLink page, you can use that URL as the src value instead of the default unil.ink/username URL. Both work identically for embedding purposes.

  • The basic embed snippet is <iframe src="https://unil.ink/username" width="100%" height="600" frameborder="0"></iframe> — paste it into any HTML editor.
  • Wrap in a max-width: 420px container to keep the mobile-optimized layout looking correct on desktop screens.
  • Height must be set manually — increase it if content is cut off; there is no auto-resize without custom JavaScript.
  • Your host site must use HTTPS — HTTP host sites cannot embed HTTPS iframes without a mixed-content error.
  • Updates to your UniLink page reflect automatically in all iframe embeds without changing any embed code.

Ready to embed your UniLink page? Copy your URL from app.unilink.us, paste it into the iframe snippet above, and add it to your site today.

Create Your Free Link-in-Bio Page

Join thousands of creators using UniLink. 40+ blocks, analytics, e-commerce, and AI tools — all free.

Get Started Free