Website Building » Shopify » How Do I Add a 3D Model to Shopify?

How Do I Add a 3D Model to Shopify?

Last updated on October 1, 2022 @ 1:16 pm

Adding a 3D model to Shopify is easy! You just need to add some code to your product page template and then upload your 3D model file. Here’s how:

1. Log in to your Shopify account and go to Online Store > Themes.

2. Find the theme you want to edit and click Edit code.

3. In the Layout folder, click on product.liquid to open it in the code editor.

4. Find the section where you want to add the 3D model and paste this code:

{% include ‘model-viewer’ %}

5. Save your changes and upload your 3D model file to the Assets folder.

The maximum file size is 1 MB. Supported file formats are .glb, .obj, and .gltf.

6. That’s it! Your 3D model will now appear on your product page.

PRO TIP: If you are thinking about adding a 3D model to your Shopify store, there are a few things you should know. First, Shopify does not currently support 3D models. This means that if you add a 3D model to your store, it will not be visible to customers. Additionally, 3D models can be very large files and adding one to your store could significantly slow down your site. If you do decide to add a 3D model to your store, we recommend using a file compression tool to reduce the file size before uploading it to Shopify.
Kathy McFarland

Kathy McFarland

Devops woman in trade, tech explorer and problem navigator.