Skip to content
We Get Around Network
Quick StartCameras, platforms, training and more
#Embed

Embed Code for Mobile Site

Started by tommy_1800 · · 6 replies · 775 views

Last reply

Companies in this topic:Matterport

The last post here is over 10 years old. Cameras, apps and prices may have changed since; see the newest #Embed topics.

🔖 Save🔔 Follow
#Embed

tommy_1800ContributorOP

Access member
We have a mobile site, through squarespace, and the code we use to embed it in the site doesn't automatically adjust the size of the embeded window to match the width of the browser platform.

I've attached a screen shot of the issue.

Is it just a piece of code I'm missing?

Mobile browser screenshot of Stone Cliff Home virtual tour embedded in Squarespace website showing oversized content width.

rpetersnVeteran

Access member
Try using the "Generic iFrame Embed" code generator from this online tool:

http://embedresponsively.com/

Matterport's iframe doesn't ship with the ability to automatically resize to fit your viewport, but the code/CSS that this tool generates should get you squared away. :)

KoaWareRegular

Access member
hi @tommy_1800! Unsure if you are using Squarespace for your own website or to design a Property Site- but if it's the latter, we just launched an instant & automated Property Site/Virtual Tour software, called KoaWare, that quickly & easily showcases Matterport 3D.You're able to copy & paste the Url and avoid annoying formatting issues!

Here's our recent announcement in the forum with more information as well.

Hope that helps!

MariaRegular

Access member
rpetersn's suggestion is very good. I have used it many times.

I have also used the following as well. The width and height are the default, but is responsive its the iframe style set to width of 100% and will automatically adjust to the size of the viewers screen but should keep the same aspect ratio as defined by the height and width you input.

<iframe style="width: 100%;" src="https://my.matterport.com/show/?m=###############;f=0" width="***" height="***" frameborder="0" allowfullscreen="allowfullscreen"></iframe>

You can replace the asterisk symbols with that of your height and width. Specifically you should probably set the width to a number as defined by the frame border of your SquareSpace site. The Height is probably less important and you can pick a number that looks good on the page. The whole Matterport link in the embed code I provided can be replaced by one that you get from your models Matterport embed code.

dgbeebyMember

Access member
Hi would this also work on a Wix website?

Thanks

rpetersnVeteran

Access member
I can't say for sure re: WIX, but it should work on any site that can accept inline CSS and IFRAME content.

dgbeebyMember

Access member
Thanks for the help, although it didn't seem to have any joy.

I also have the issue that on Wix there is never a the little expandable box in the bottom right corner to allow full screen? even when I've play a little with the code to allow it?

Not sure if they have this blocked somehow as I've searched there forums and many people have the same issue.

any advice would be much appreciated.

Thanks in advance

Loading…

Browse the forum →