> For the complete documentation index, see [llms.txt](https://oranthemes.gitbook.io/nimbus-theme/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://oranthemes.gitbook.io/nimbus-theme/collections-and-products-pages/product-page/product-template.md).

# 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

{% hint style="success" %}
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.**
   {% endhint %}

## 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.

{% hint style="success" %}
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**.
   {% endhint %}

You can read more documents from shopify

{% embed url="<https://help.shopify.com/en/manual/online-store/themes/theme-structure/templates#apply-a-new-template-to-a-product>" %}

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

## Managing your templates <a href="#managing-your-templates" id="managing-your-templates"></a>

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 <a href="#rename-a-template" id="rename-a-template"></a>

{% hint style="success" %}
**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**.
   {% endhint %}

### Delete a template <a href="#delete-a-template" id="delete-a-template"></a>

{% hint style="success" %}
**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**.
   {% endhint %}

{% embed url="<https://help.shopify.com/en/manual/online-store/themes/theme-structure/templates#managing-your-templates>" %}
