Product template

Create a new product template

You can customize the Default product template, and any modifications will affect all pages using that template. To display certain pages differently, create a new template based on an existing one in your theme.

Create a new product template

Steps:

  1. In the theme editor (Customize), use the page selector to open Products > Create template.

  2. Add Name in the provided field for the new template.

  3. Select an existing product template to base on, then click Create template.

  4. Make necessary changes > Save.

Apply a new template to a product

You can change an assigned template for the following sections in a published theme:

You change an assigned template in your Shopify admin. The template options that display are based on the available templates only in your current live theme.

Steps:

  1. From your Shopify admin, go to Products.

  2. Click a product that you want to apply a new template to.

  3. In the Theme template section, click the drop-down menu and then select the template that you want to apply to your product.

  4. Click Save.

You can read more documents from shopify

Resources assigned to that template will be displayed with the default template until you assign a different one.

Managing your templates

To rename or delete a template, you need to use the code editor. Editing a template file might cause issues with your online store.

When you delete a template, any online store resources that had the template assigned to them are displayed with the default template until you assign a different one.

Rename a template

Steps:

  1. From your Shopify admin, go to Online Store > Themes.

  2. Find the theme with the template that you want to rename, and then click > Edit code.

  3. In the code editor, find the templates folder.

  4. Click the name of the template that you want to rename, and then click the pencil icon.

  5. In the Rename file dialog, enter a new template name in the File name field.

  6. Click Rename file.

Delete a template

Steps:

  1. From your Shopify admin, go to Online Store > Themes

  2. Find the theme you want to delete a template from, and then click > Edit code.

  3. In the code editor, find the templates folder.

  4. Click the name of the template that you want to delete, and then click the trash can icon.

  5. In the dialog, click Delete file.

Last updated