Software

Virtual Tour Not Working in WordPress? Fix the Embed

November 20, 2026 • By SVT Team
Virtual Tour Not Working in WordPress? Fix the Embed

If your virtual tour is not working in WordPress, open the exact iframe source in a private window, then inspect the published WordPress page in the same session. A missing iframe points to the editor, save permissions, or rendered markup. A frame that exists but stays blank calls for a different check: its dimensions, the browser console, or the response from the tour host.

Use the steps below on a staging page and record one change at a time. The local tests used WordPress 7.1.5, the Twenty Twenty-Five theme, and Chrome 158 on November 20, 2026. A simple local viewer page isolated the iframe from tour-specific code. For the original setup and responsive embed example, see the virtual tour embedding guide.

Compare the direct tour with the published page

  1. Open the visitor URL copied from the iframe's source attribute. Keep the complete query string. If it also fails directly, check the tour's publication state, access settings, and final URL after redirects.
  2. If the direct URL works, open the published WordPress page while signed out. In the browser inspector, look for the iframe and confirm that its source matches the URL you just tested.
  3. If the frame is present, check the visible size of the frame and its parent. With a usable size, check the first relevant Console or Network error before changing any settings.

In Simple Virtual Tour, use the visitor link and generated embed from the tour's publishing controls. The SVT publishing tutorial shows where to find them. A login screen or a password prompt may be the tour's intended access behavior.

The iframe disappears after saving

Use a Custom HTML block in the WordPress block editor. If you use a page builder, check that its chosen component accepts raw HTML. A plain text component can display the markup as text. A URL-only embed component may expect a supported service and leave a generic tour URL as a link.

Save a test page, reopen the block, and inspect the published page. In our local test, the same Custom HTML markup was saved under two accounts through the WordPress post API. The Author account lacked the unfiltered_html capability and WordPress removed the iframe. The Administrator account had the capability and the tag remained in the rendered page. That comparison tests the save filters. Editor interfaces and hosted-site policies can vary.

The WordPress Custom HTML documentation explains this filtering. Ask the site administrator to check the actual capability and supported embed method. Multisite and managed hosting can impose further restrictions. Keep the site's permission policy and offer the visitor link if the approved editor cannot save an iframe. If the iframe survives in the saved block but disappears from the published markup, compare the front-end template, plugins, and cached response.

The iframe exists but has no visible space

Inspect the frame and its ancestors on the published page. Check computed height, display, and overflow, especially inside tabs, popups, and narrow columns. A frame can have a positive height while a parent clips it. A percentage height also needs an appropriate containing block.

To reproduce clipping on staging, wrap a working iframe in a container with height zero and hidden overflow. In Chrome our iframe still measured 364 pixels high, including its default border, while the wrapper measured zero. Remove the clipping rule or restore the full responsive wrapper from the embed generator. Recheck the page at desktop and mobile widths, including after opening any tab or modal that contains the tour.

The browser blocks the frame or a resource

Check Console and Network on the published page. For mixed content, follow the iframe request through redirects and check any failed media requests inside the viewer. Use HTTPS for the WordPress page, the final viewer URL, and required viewer resources. In a separate local browser fixture, Chrome blocked an HTTP iframe on an HTTPS page and loaded the HTTPS control. The browser mixed content reference describes which requests are blocked or upgraded.

A framing-policy error needs a check on the server named by the error. The WordPress response's frame-src policy can restrict where iframes load from. The viewer response's frame-ancestors policy can restrict which sites may embed it. X-Frame-Options can also block embedding. Give the relevant administrator the two origins and the console message so they can review whether the intended embed should be allowed. Changing size or pasting the same code again will leave a response policy in place.

The tour breaks after a theme or plugin change

On a staging copy, create a minimal page with the same embed. Compare it under the current theme and a default theme. Disable optional plugins on staging and restore them one at a time. Start with page builders, optimization, consent, and security plugins if the symptom matches what they control. Test the same URL after each change and clear the relevant page cache. The WordPress conflict troubleshooting lesson describes how to isolate themes and plugins.

In our controlled test, a local plugin added a CSS rule that hid the iframe. The tag remained in page markup, but Chrome reported display none and a height of zero. Disabling that plugin restored the frame on the same page. On your site, record the setting or rule that changes the outcome and check whether the effect is limited to that page. If the tour loads but starts slowly, follow the virtual tour loading guide for separate tests of the viewer and host page.

Frequently asked questions

Why does the editor preview work but the public page is blank?

Compare the saved HTML, the public iframe dimensions, and the signed-out Console. The public page can use different CSS, cached markup, or a different access or consent state.

Does WordPress need a plugin to display an iframe?

A site that permits the HTML can render a standard iframe through a Custom HTML block. Your hosting policy or builder may require a supported alternative. Verify the saved page using the account that will maintain it.

What should I send to support?

Send the public page URL, direct visitor URL, browser and device, WordPress and plugin versions, whether the tag survives saving, and the relevant console error. Remove private tokens and credentials from screenshots and logs.

Verify the fix as a visitor

Repeat the direct and embedded checks while signed out, then drag the panorama and open a second scene at desktop and phone widths. Keep a direct visitor link available while you confirm the embed. You can use the Simple Virtual Tour demos to see how a working viewer responds before testing your own tour.

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.