Site Preview

Embed a live preview of an external website in a window-style frame.

View demo

Usage

Site Preview embeds an external website in a window-style iframe on your page. Visitors can browse a scaled-down live preview and switch between Desktop, Tablet, and Mobile frame sizes before clicking through.

Use it on portfolio pages, case studies, or landing pages where you want to showcase another site without sending users away immediately.

Preview frame

The block loads the URL you provide in an iframe, scaled to fit the preview area. On the front end, device icons above the frame switch the preview dimensions:

  • Desktop β€” full-width frame (about 60vh tall)
  • Tablet β€” iPad-proportioned frame
  • Mobile β€” iPhone-proportioned frame

The iframe content is zoomed out so more of the page is visible at once.

Settings

  • URL β€” address of the site to embed (required for the preview to load)
  • Title β€” accessibility label for the iframe (not shown on the page)
  • Shadow β€” drop shadow around the preview frame (on by default)
  • Hide Toggles β€” remove the desktop/tablet/mobile icon row
  • Hide Button β€” remove the Visit link below the preview

Visit button

When visible, the Visit button opens the URL in a new tab. Hide it when the iframe preview alone is enough, or when you provide your own link elsewhere on the page.

Block width

Site Preview supports Wide and Full alignment from the block toolbar.

Tips

  • Many sites block iframe embedding via security headers β€” if the preview is blank, the target site may not allow it.
  • Use Hide Toggles for a clean portfolio embed; keep toggles visible when responsive behavior is part of the showcase.
  • Pair Site Preview with a Hero or Section intro that explains the project before the live preview.
  • Set an descriptive Title for screen readers even though it is not displayed visually.

Screenshots

Front-end

  • Desktop, tablet, and mobile toggles resize the preview frame.

Settings

Settings

Shadow setting in the block editor sidebar
Shadow

Drop shadow around the preview frame. Enabled by default.

Hide Toggles setting in the block editor sidebar
Hide Toggles

Hides the desktop, tablet, and mobile icon row above the preview.

Hide Button setting in the block editor sidebar
Hide Button

Hides the Visit link that opens the URL in a new tab.

URL setting in the block editor sidebar
URL

Address of the external site loaded in the preview iframe.

Title setting in the block editor sidebar
Title

Accessibility label for the iframe element. Not displayed on the page.