How to create a template?
Use the functionality of the templates to create unique content for each page.
Last updated
Use the functionality of the templates to create unique content for each page.
Last updated
Note! The template functionality works only in the published theme.
Templates can be used on several page types such as , , , , and . Find more details on the following functionality .
You can also follow the general steps to create a new template:
Go to the Theme Editor and choose a page type in the top selector for which the template should be created:
Then, press the button "Create template":
In the popup, you can edit such fields:
Name - paste the non-repeated name for the template.
Based on - use any template on which a new one should be based. It can be the default template or a new template previously created in your store.
After editing the fields, press the "Create template" button.
Go to Shopify admin to assign the template to the appropriate page.
To assign a template to a Product page, go to Shopify admin -> Products, and choose a product. Here you can set a template in the "Theme template" drop-down:
Save the changes.
If you need to use a template for a Collection page, go to Shopify admin -> Products -> Collections, and choose a collection. Here you can assign a template in the "Theme template" drop-down:
Save the changes.
In your Shopify admin -> Content -> Blog posts, choose the Blog post and press on it. Here you can apply a template by choosing the one in the "Theme template" drop-down:
Save the changes.
In the "Blog posts" section of your admin, you can also assign a template for a Blog. To set up a template, press the "Manage blogs" button at the top right and select a blog. Then, follow the same steps as before.
In the next step, you can use the "Theme template" drop-down to add a template:
Save the changes.
To assign a template to a Page, navigate to Shopify admin -> Online Store -> Pages, and choose a page. Then, select the created template in the "Theme template" drop-down:
Save the changes.
Now you can go back to the Theme Editor and customize a template. With this functionality, you can customize each template by adding various sections and blocks independently. Use the Theme Sections to customize a template. Read more on how to add and edit each section, .