How to create a template?

Use the functionality of the templates to create unique content for each page.

Note! The template functionality works only in the published theme.

Templates can be used on several page types such as Products, Collections, Blogs, Blog posts, and Pages. Find more details on the following functionality here.

You can also follow the general steps to create a new template:

Step 1

Go to the Theme Editor and choose a page type in the top selector for which the template should be created:

Step 2

Then, press the button "Create template":

Step 3

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 by you.

After editing the fields, press the "Create template" button.

Step 4

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 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 changes.

  • In your Shopify admin -> Online Store -> 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 changes.

  • In the blog post, you can also assign a template for a Blog. To set up a template, scroll down to "Comments" and press on the blog link:

In the next step, you can use the "Theme template" drop-down to add a template:

Save 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 changes.

Step 5

Now you can go back to the Theme Editor and customize a template. The templates functionality allows adding numerous content sections and blocks individually for each template. Use the Theme Sections to customize a template. Read more on how to add and edit each section, here.

Last updated