# Product template

If you modify a template, those changes will affect all pages utilizing that template. If you wish to customize specific pages of that type, you can create a new template derived from an existing one within your theme.

## Create a new product template

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

![](https://2059493604-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRPWLB8MHorBB5Xcu4UyI%2Fuploads%2FB8l6PSJKnn0Ow42rVn9O%2Fimage.png?alt=media\&token=db122777-01e0-4309-8b40-63e0e97dde22)

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

<figure><img src="https://2059493604-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRPWLB8MHorBB5Xcu4UyI%2Fuploads%2FELTSiPABt0m1IvSpzTcc%2Fimage.png?alt=media&#x26;token=0098ece9-a321-4cf6-99c3-06124713d79a" alt=""><figcaption></figcaption></figure>

## Apply a new template to a product

1. Navigate to Products from your Shopify admin panel.
2. Utilize the search filter to find the specific product you wish to modify, or select it from the list of existing products.
3. Within the Online Store section, choose a new theme template from the dropdown menu to apply to the selected product.
4. Finally, click Save to confirm the changes.

## Managing yours templates

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

### Rename a template

1. Go to Online Store > Themes from your Shopify admin panel.
2. Locate the theme containing the template you wish to rename, then click the ... button followed by Edit code.
3. Within the code editor, navigate to the templates folder. Click on the name of the template you want to rename, then select Rename file.
4. Enter the new template name, and click Rename file to save your changes.

### Delete a template

1. Navigate to Online Store > Themes in your Shopify admin panel.
2. Locate the theme from which you want to delete a template, then click the ... button followed by Edit code.
3. Within the code editor, locate the templates folder. Click on the name of the template you wish to delete, then select Delete file.

If the template has any resources assigned to it, they will revert to using the default template until you assign a different one.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://4sh-templates.gitbook.io/opulent-os2.0/collections-and-products/product-page/product-template.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
