Using templates
Theme editor
Templates control the content, layout, and style of all pages and are customized in the theme editor.
There are templates for every type of page, including the home page, product page, collection page, blog posts, and more.
At first, there is one Default template for every type of page. All product pages, for example, are initially assigned the same default product template. This means that changes made to a default template will apply to all pages that use that template.
To change the content or style of specific pages, you will need to create a new template and then assign that template to those pages in the Shopify Admin.
Alternatively, you can use metafields and dynamic sources to automatically display the correct content or settings for pages that use the same template.
Open templates
Use the Templates selector in the theme editor to find the templates available for each page type. By default, the theme editor opens the Home page template.
See the Theme templates guide for a full overview of all available templates.
Preview specific pages
When you open a template, the theme editor selects a page (e.g. one product or collection) to preview the changes made to that template.
To preview a different page with that template, click Change in the "PREVIEW" section at the top of the sidebar.
Assign templates to pages
If a warning symbol (!) appears next to the page name, this means that the template you are editing is not applied to that page. Go to the page in the Shopify admin and use the Theme template menu to assign a template.
Templates cannot be assigned on unpublished or trial themes. All changes to your templates will be saved but can only be assigned when purchased and published.
Create and assign multiple templates
At first, there is one Default template for every type of page. This means that changes made to a default template will apply to all pages that use that template.
To change the content or style of specific pages, you will need to create a new template and then assign that template to those pages in the Shopify Admin.
Alternatively, you can use Metafields and dynamic sources to automatically display the correct content or settings for pages that use the same template.
Assign templates from unpublished theme
Shopify only allows you to assign templates from your published theme. Shopify will not show templates from unpublished themes, unless they have the same name as the published theme’s templates.
As a workaround, you can create a duplicate template in the published theme and give it the same name as the template from the unpublished theme.
This new template will show in the Shopify admin and assigning it will apply the template to both themes.
Related links
Last updated