Software

How to Embed a Virtual Tour: Website and WordPress Guide

September 06, 2026 • By SVT Team
How to Embed a Virtual Tour: Website and WordPress Guide

To embed a virtual tour on a website, copy the viewer's embed code, paste it into a page component that accepts HTML, give the frame usable dimensions and test the saved public page. In Simple Virtual Tour, start at Publish → Tour. Use the visitor viewer, not the editor or administrator login page.

Verification and scope: This guide is published by the developer of Simple Virtual Tour. The official publishing tutorial, the local embed generator, the HTML standard and WordPress documentation were reviewed on 12 November 2026. Labels and controls depend on your installed release, website builder and permissions. The instructions do not guarantee identical fullscreen, sensor or VR behavior on every browser or physical device.

Before you copy the code

  • Test the visitor link: open it outside your editor session. Confirm the intended tour, starting room, access restrictions and availability dates.
  • Check both hosts: the website must accept an iframe and the tour server must permit that website to embed its viewer. Use HTTPS for the page, tour and required media.
  • Keep hosting active: an iframe displays content from its source server. It does not copy the application or panoramas into WordPress or your page builder.

If the tour is not ready, follow the tour creation guide. Compare Self-Hosted and Cloud or use the hosting and installation guide before changing server configuration.

Copy the embed from Simple Virtual Tour

  1. Open the correct tour. Go to Publish → Tour and review its visitor link. A created tour already has a link; status, protection and scheduling determine who can actually open it.
  2. Locate the embed code. Use the Embed Code section. In the reviewed generator, choose Aspect Ratio for proportional sizing or Custom Dimensions for explicit width and height. Older releases may present different controls.
  3. Set the size and language. Choose a width that fits the page column and enough height for navigation. If the generator offers a language selector, select the intended viewer language before copying. It does not translate tour content automatically.
  4. Copy the complete block. Preserve the wrapper and viewer URL, including its query parameters. Copying only the iframe while discarding the wrapper can remove its height or responsive layout.
  5. Insert and save. Paste into the website's HTML or embed component, then save or publish that page. Test the final public page outside the editing session.

The source workflow is documented in the official SVT publishing guide. The reviewed application generator also supplies lazy loading and feature permissions. Adjust its output only with an understanding of the functions your tour uses.

A responsive HTML example

Prefer the code generated for your actual tour. The following simplified example illustrates sizing, a descriptive frame title and a fallback link. It is not an exact copy of SVT's generator and only delegates fullscreen, so it is not a complete sensor, camera or WebXR configuration.

<div style="position:relative;width:100%;aspect-ratio:16/9;min-height:360px;">
  <iframe
    src="https://example.com/your-tour"
    title="Virtual tour of the property"
    loading="lazy"
    allow="fullscreen"
    allowfullscreen
    style="position:absolute;inset:0;width:100%;height:100%;border:0;display:block;">
  </iframe>
</div>
<p><a href="https://example.com/your-tour">Open the property virtual tour</a></p>

Replace both example URLs with the real visitor URL and localize the title and link text. The example's minimum height is a layout starting point, not a software requirement. Adjust it after testing the controls on narrow screens. A proportional frame alone can become too short on a phone; a height of 100% needs a parent with a usable height.

Keep the source URL intact, escaping any query-string ampersands as &amp; in HTML. The HTML standard defines frame attributes, loading and permissions: iframe specification.

WordPress and website builders

In the WordPress block editor, add a Custom HTML block and paste the complete embed. Save the page and test its public URL. An editor preview or placeholder is not a substitute for testing the saved result.

WordPress can remove disallowed markup, including iframes, when the account lacks the required capability. If the code disappears after saving, ask the site administrator to check the supported embed method and account permissions. Source: WordPress Custom HTML documentation.

Other builders may provide an HTML, code or URL-based embed component. Check that provider's current rules, plan and allowed domains. Do not paste a raw URL into an arbitrary text block and assume it becomes an interactive tour. A direct link remains an alternative when the platform does not permit the embed.

Diagnose a tour that works directly but not in the page

  • Frame refuses to load: inspect the browser console and response headers. The host page's frame-src policy controls where its frames may load from; the tour response's frame-ancestors policy controls which sites may embed it. These are different directions of permission.
  • Tour host rejects other websites: X-Frame-Options may also restrict framing. Changing the iframe's HTML cannot override a server response policy. Ask the administrator of the relevant server to allow the intended origin without removing unrelated protections.
  • Blank or tiny area: inspect wrapper height, page-builder layout and hidden tabs or modals. A width of 100% does not provide height. Test after the container becomes visible.
  • Code disappears or displays as text: use the supported HTML component and check save-time sanitization. The visitor URL must point to the viewer, not a login page.
  • Mixed content or blocked media: check HTTPS, redirects, asset URLs, consent controls and network errors. An HTTPS page should not depend on an HTTP tour.
  • Password or lead form appears: confirm whether it is the configured access behavior. An embed does not bypass tour protection, status or scheduling.

Sources: CSP frame sources, CSP frame ancestors and X-Frame-Options reference. A framing error is not automatically a CORS problem; identify the actual browser message before changing headers.

Fullscreen, sensors, media and VR

Frame permissions, the parent page's policy, browser support, HTTPS and user approval can all affect advanced functions. Delegating a feature with allow does not guarantee that the browser supports it or that the visitor grants access. Preserve the relevant generated permissions when the tour needs them; do not copy a broad permission list as a universal fix.

Test fullscreen entry and exit, audio and video started by the visitor, and any orientation or VR controls you intend to offer. Do not promise automatic media playback or immersive XR on every device. Avoid adding an arbitrary sandbox attribute without checking its restrictions: it can disable scripts, forms or new windows used by the tour.

Loading, mobile usability and accessibility

Reserve visible space before the viewer loads. Lazy loading can defer a frame near the viewport, but does not reduce the tour's eventual media size. For a page with several tours, a preview and launch button can avoid loading all viewers immediately. Optimize panoramas and verify the actual page on a typical connection.

On a real phone, test portrait and landscape layouts, panorama dragging, hotspot taps, menus and closing information panels. Check keyboard focus and navigation on desktop. Give the iframe a descriptive title, provide a normal visitor link, and keep essential descriptions and contact details as page text. A fallback link alone does not make every interaction accessible.

Connect the embed to the rest of your workflow

  • AI Tools: use the AI Panorama Editor and AI Auto Linker where appropriate, then review altered images and room connections before sharing. Check plugin, plan and separate provider API requirements.
  • Google Street View: this is a separate publication destination. Embedding an SVT viewer in a website does not publish the tour to Google.
  • SaaS Plugin: consider it when customers need their own editing accounts and plans. A client website can display a finished tour without being the application that manages those accounts.
  • White-label delivery and the pricing guide: confirm branding, hosting responsibility and ongoing costs before promising client delivery.

Place the tour beside a useful heading, a description of the space and a relevant contact or booking action. An iframe alone does not guarantee search indexing or inclusion in AI answers. Try the SVT demo and review the software comparison when choosing a workflow.

Final checks before sharing

Open the saved public page as a visitor. Confirm the correct tour and language, stable dimensions, navigation, media, intended access controls, fullscreen where supported and the fallback link. Test both the direct URL and the embed after changes to the tour host, page builder, cache or security policy.

Frequently asked questions

Does an embed copy the tour to my website?

No. The iframe loads the viewer from its source host. That application and its media must remain available; embedding does not create an independent backup.

Can I use the same tour on several pages?

Technically, framing can work on multiple allowed pages. Verify the provider's license, plan, permitted domains and hosting capacity separately. A working snippet does not establish unrestricted contractual rights.

Do I need the SaaS Plugin to embed a finished tour?

No. Standard visitor embedding is different from operating customer editor accounts. Review the SaaS workflow only if you need those account and plan functions.

Why does fullscreen work directly but not in the iframe?

Check the frame's permissions, the parent policy and browser support. Test after a visitor action and retain a direct visitor link as an alternative.

Ready to build your own Virtual Tours?

Choose hosted Cloud or Self-Hosted on your server. Review features, prices and operating responsibilities before you start.