Skip to content
WalkThru Media
Back to all posts

· 5 min read

How to Embed a Virtual Tour on Your Website

By WalkThru Media

You have had a professional 360° virtual tour created for your business or property. The tour is hosted on a virtual tour platform and you have been given a link. The next step is getting that tour onto your website, where your visitors can find and explore it.

The standard method for embedding a virtual tour on a website is using an iframe — a piece of HTML that displays content from one website inside another. If you have ever seen a YouTube video embedded on a blog post, you have seen an iframe in action. A virtual tour embed works the same way.

The Basic Embed Code

Most virtual tour platforms provide a ready-made embed code that you can copy and paste into your website. This code typically looks something like this:

<iframe src="https://tour-platform.com/your-tour" width="100%" height="600" frameborder="0" allowfullscreen></iframe>

The key parts are:

src — the URL of your virtual tour. This is provided by the tour platform.

width and height — the dimensions of the embed. These can be set in pixels or percentages.

allowfullscreen — allows the viewer to expand the tour to full screen, which provides a much more immersive experience.

Making the Embed Responsive

A responsive embed adjusts its size to fit different screen sizes — desktops, tablets and phones. This is important because a fixed-size embed may look fine on a desktop but overflow or appear tiny on a mobile device.

The most common approach to making an iframe responsive is to wrap it in a container div with a percentage-based padding that maintains the aspect ratio:

CSS approach: Set the container to position: relative with a padding-bottom percentage (56.25% for 16:9, 75% for 4:3), and set the iframe to position: absolute filling the full width and height of the container.

Your web developer should be able to implement this quickly. Most modern website builders and CMS platforms (WordPress, Squarespace, Wix) also handle responsive embeds automatically or with a dedicated embed block.

Choosing the Right Aspect Ratio

The aspect ratio of the embed affects how the tour appears on the page.

16:9 (widescreen) — this is the most common ratio and works well for most virtual tours. It provides a good balance of width and height and looks natural on both desktop and mobile screens.

4:3 — slightly taller relative to width, which can work well when the tour content benefits from more vertical space. Some virtual tour platforms recommend this ratio.

Square (1:1) — less common for tours but can work in specific website layouts, particularly on mobile-first designs.

The best choice depends on your website's design and where the tour will be placed on the page.

Where to Place the Tour on Your Website

The placement of the virtual tour on your website affects how many visitors find and use it.

Dedicated Tour Page

Creating a dedicated page for the virtual tour — such as "Virtual Tour" or "Explore Our Space" — gives it a prominent place in your site navigation. This approach works well when the tour is a key feature of your online presence.

Homepage

Embedding the tour on the homepage ensures maximum visibility. This is particularly effective for businesses where the physical space is a primary selling point — hotels, restaurants, event venues, gyms.

Property or Listing Pages

For real estate, each property listing page should include its own virtual tour embed, alongside the standard photography gallery. This makes the tour part of the browsing experience for each listing.

Contact or Visit Us Page

Placing the tour on the contact or "Visit Us" page helps people preview the space before they make the trip. This can be combined with a Google Street View embed showing the exterior and street-level view.

Loading Performance

Virtual tours are media-rich content, so they can affect page loading times if not handled properly.

Lazy Loading

Lazy loading means the tour does not start loading until the viewer scrolls to it. This prevents the tour from slowing down the initial page load for visitors who may not scroll that far. Most modern browsers support lazy loading with a simple attribute: loading="lazy" on the iframe element.

Loading Placeholder

While the tour loads, showing a placeholder — such as a still image from the tour with a "Click to explore" button — can keep the page looking clean and give the visitor a preview of what the tour contains. This also allows visitors on slow connections to choose whether they want to load the full interactive tour.

Page Speed Considerations

If page speed is a priority (and it should be for SEO and user experience), test the page with the tour embedded to ensure it does not significantly impact loading times. Tools like Google's PageSpeed Insights can help identify any issues.

Mobile Experience

A significant proportion of your visitors will view the tour on a mobile device. Ensure that the embed works well on phones and tablets:

Touch controls. The viewer should be able to swipe to look around and pinch to zoom. Most virtual tour platforms handle this automatically.

Responsive sizing. The embed should resize smoothly for smaller screens without cropping or overlapping other content.

Full-screen option. On mobile, the full-screen option is particularly useful, as it gives the viewer the maximum screen area for exploring the tour.

Search Engine Considerations

Search engines cannot currently explore or index the content inside a virtual tour iframe. To ensure that the page hosting the tour still performs well in search results, include descriptive text content around the embed — a heading, a paragraph describing what the tour shows, and relevant keywords.

This text content helps search engines understand what the page is about and can attract visitors who are searching for information about your business or property.

Multiple Tours on One Site

Some businesses may have multiple virtual tours — different properties, different floors, or tours captured at different times. Each tour can have its own embed, either on separate pages or on a single page with clear navigation between them.

Getting Help with Embedding

If you are not comfortable with HTML code, your web developer or website platform's support team can help you embed the tour. The process is usually straightforward and takes only a few minutes.

At WalkThru Media, when we deliver a 360° virtual tour or Google Street View tour, we provide the embed code and can advise on the best placement and configuration for your website.

Contact us if you need assistance embedding your virtual tour.

Have a space in mind?

Start your project.

Explore a selection of our photography, virtual tours and Google Street View projects from across Dubai, Sharjah and Abu Dhabi.

Trusted by leading brands across the UAE

  • Agoda logo
  • Airbnb logo
  • Audi logo
  • Avyanco Global Startup Advisory logo
  • Bayut logo
  • Bestune logo
  • Booking.com logo
  • Boss Tiny House logo
  • C37 Private Medical Workspace logo
  • Contractors Direct logo
  • Desert Chill Ice Cream logo
  • Dubai Real Estate Centre logo
  • Dubizzle logo
  • Expedia logo
  • Fidelity Fitness Club logo
  • Freshcourt logo
  • Fujifilm logo
  • Grand Stores logo
  • HelpBnk logo
  • Joyalukkas logo
  • Kalyan Jewellers logo
  • Lucky Alvin logo
  • Martin's Dutch logo
  • Novo Pharmacy logo
  • OAK logo
  • Oryx logo
  • Property Finder logo
  • Sanctuaire Exotique logo
  • Tach logo
  • Vrbo logo