How to embed a 3D model in Wordpress

Wordpress does not support uploading 3D models by default for security reasons, therefore the simplest solution is to host 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 Wordpress 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 Wordpress edit your page and add a Custom HTML block
  4. Paste the Inline Embed snippet from TinyGLB into the HTML box. 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 Wordpress edit your page and add a Custom HTML block
  4. Paste the Pop-up Embed snippet from TinyGLB into the HTML box.