# Collection template

<div data-full-width="true"><figure><img src="https://1997835572-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MlL6sK9D7unq8F2VPPp%2Fuploads%2Fa5w6LQkUFhLWSt58jhjP%2FHelp%20Center%20banner%20%201250%20x%20200-2.png?alt=media&#x26;token=ab0daf12-b917-4435-a603-9a3f6613f853" alt=""><figcaption><p><a href="https://foxecom.com/pages/affiliate?utm_source=minimog%2Bhelp%2Bcenter&#x26;utm_medium=banner&#x26;utm_campaign=foxaffiliatelaunch2024">Explore FoxEcom Affiliate Program now </a><span data-gb-custom-inline data-tag="emoji" data-code="2728">✨</span></p></figcaption></figure></div>

By default, you can customize using the **Default collection** template.

**Any changes you make to a template will impact all pages that use that template**. If you want to display some pages of that type differently, then you can create a new template based on one that already exists in your theme.

## Create a new collection template

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

![](https://1997835572-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MlL6sK9D7unq8F2VPPp%2Fuploads%2FUUIuWyQNMNevNXnvOqn9%2FScreen%20Shot%202021-11-06%20at%2011.42.27.png?alt=media\&token=5faa5345-7c86-4cde-af75-7c115d582bec)

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

![](https://1997835572-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MlL6sK9D7unq8F2VPPp%2Fuploads%2FLq0G6PEfgBs8tTZFIKY8%2FScreen%20Shot%202021-11-06%20at%2011.43.23.png?alt=media\&token=b4989bae-72ef-4435-b7da-fb2b04c4cad7)

3\. Choose the suitable value in the **Based on** dropdown, then select **Create template**.

## &#x20;<a href="#apply-a-new-template-to-a-collection" id="apply-a-new-template-to-a-collection"></a>

## Apply a new template to a collection <a href="#apply-a-new-template-to-a-collection" id="apply-a-new-template-to-a-collection"></a>

1. From your Shopify admin, go to **Products > Collections**.
2. Use the search filter to locate the collection that you want to change, or click the collection from the list of existing collections.
3. In the **Online store** section, use the dropdown menu to select a new theme template to apply to the selected collection.
4. Click **Save**.

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

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

1. From your Shopify admin, go to **Online Store** > [**Themes**](https://www.shopify.com/admin/themes).
2. Find the theme with the template that you want to rename, and then click the **...** button > **Edit code**.
3. In the code editor, find the templates folder. Click the name of the template that you want to rename, and then click **Rename file**.
4. Enter the new template name, and click **Rename file** to save.

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

1. From your Shopify admin, go to **Online Store** > [**Themes**](https://www.shopify.com/admin/themes)
2. Find the theme you want to delete a template from, and then click the **...** button > **Edit code**.
3. In the code editor, find the templates folder. Click the name of the template that you want to delete, and then click **Delete file**. If you have any resources assigned to that template, then they are displayed with the default template until you assign a different one.
