# Collection template 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. ## How to create a new collection template In the theme editor (**Customize**), use the page selector to open **Collections**. ![](https://docs-assets.foxecom.app/pebble-theme/5822c9c9-4000-468f-ade4-7316959f05fa.png) In the **Collections** menu, click **Create template**. ![](https://docs-assets.foxecom.app/pebble-theme/20345cff-20d2-4313-a607-0db25ae363cd.png) Enter a **Name** for the new template. Under **Based on**, select the existing template you want to use as the starting point. The new template will be created with the same layout as the selected template. Click **Create template** to finish. ![](https://docs-assets.foxecom.app/pebble-theme/26ee18d4-402c-41fc-9616-3a537ca69c95.png) ## Apply a new template to a collection 1. Go to **Shopify admin > Products > Collections**. 2. Select the collection you want to update. 3. Under **Online store**, choose a template from the **Theme template** dropdown. 4. Click **Save**. ![](https://docs-assets.foxecom.app/pebble-theme/cd2434d2-ea7d-4ef2-8ba6-e7342109952d.png) The template options shown are based only on your **current live theme**. Therefore, you must publish the theme first — templates from a draft theme will not be available. ## Managing your 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 **Shopify admin > Sales channels > Online Store**. 2. Find your theme, then click **… > Edit code**. 3. Open the **Templates** folder and select the template you want to rename. 4. Click **Rename file**, enter the new name, then save. ### Delete a template 1. Go to **Shopify admin > Sales channels > Online Store**. 2. Find your theme, then click **… > Edit code**. 3. Open the **Templates** folder and select the template you want to delete. 4. Click **Delete Permanently.** Resources using the deleted template will fall back to the default template until another template is assigned. Deleting a template is **permanent**. However, you can restore it immediately after deletion using the **Undo** command. ![](https://docs-assets.foxecom.app/pebble-theme/6ffaae5f-5734-4c1a-8ca9-2d0d0066c360.png) ## Best practices * **Create a new template before making major layout changes.**
Changes made to a template affect every collection assigned to that template. If you only want to change one or a few collections, create a new template first. * **Avoid creating unnecessary templates.**
Too many templates can make your theme harder to manage. Reuse an existing template whenever multiple collections share the same layout. * **Use clear template names.**
Choose names that describe the template's purpose, such as `sale`, `summer-collection`, or `collection-with-banner`. This makes templates easier to identify when assigning them in Shopify admin. * **Avoid using `page` in template names.**
Do not include the word `page` in your collection template name, as it may cause the breadcrumb to display incorrectly or not appear at all. For example, use `summer-collection` instead of `summer-page`. ## FAQs Shopify only shows templates from your **current live theme** in the **Theme template** dropdown. If you created the template in a draft theme, it won't be available for assignment until that theme is published. Yes. Multiple collections can use the same custom template. Keep in mind that any changes made to that template will affect all collections using it. No. You only need to create a new template when a collection requires a different layout or content structure. If several collections share the same design, they can use the same template. Yes. You can create and customize templates in a draft theme. However, templates from a draft theme cannot be assigned to collections from Shopify admin until that theme is published. Those collections are likely using the same template, usually the **Default collection** template. Any changes made to a template will automatically apply to every collection assigned to that template. If you want a specific collection to have a different layout or content, you can either create a new collection template and assign it only to that collection, or use **collection metafields** to display different content while keeping the same template.