For the complete documentation index, see llms.txt. This page is also available as Markdown.

How to create a template?

Use the templates functionality to build a unique layout with individual content for each page of the same category.

Templates can be used across several page types, including 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 "Create template" button.

Step 3

In the pop-up, you can edit the following fields:

  • Name - use a name for the template that is not repeated.

  • Based on - use any template on which a new one should be based. It can be the default template or a new template created in your store earlier.

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

  • If you need to use a template for a Collection page, go to Shopify admin -> Products -> Collections, and select a collection. 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 it. Apply a template by selecting 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 "Template" drop-down.

Save the changes.

Step 5

You can now return 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 here.

Last updated