How to embed a 3D model in Squarespace

Squarespace does not support uploading 3D models into the Asset Library, therefore it requires hosting your 3D model on an external service. If you use a 3D viewer such as Google's <model-viewer>, then your 3D models need to be hosted somewhere that supports CORS.

TinyGLB is specifically designed for hosting 3D models, combining high performance with unlimited bandwidth and model views.

Follow these steps to embed a 3D model in your Squarespace website using TinyGLB:

Inline Embed

  1. Go to the TinyGLB Editor and upload your 3D model in GLB format
  2. Click Publish to Web to get your embed code
  3. In Squarespace edit your page and add an Embed Block, and set Embed as to Code Snippet
  1. Click Embed data and paste the Inline Embed snippet from TinyGLB. Adjust the height property in the embed code as required.

Pop-up Embed

  1. Go to the TinyGLB Editor and upload your 3D model in GLB format
  2. Click Publish to Web to get your embed code
  3. In Squarespace go to Pages > Custom Code > Code Injection
  4. Copy the <script> tag (just the first line) from the Pop-up Embed snippet in TinyGLB and paste it into the Header box
  1. Edit the page where you want the view 3D button to go and add a Code Block
  2. Set the Mode to HTML and paste the <button> tag (the remaining lines) from the Pop-up Embed snippet in TinyGLB