How to create a template?

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

circle-exclamation

Templates can be used on several page types, such as Productsarrow-up-right, Collectionsarrow-up-right, Blogsarrow-up-right, Blog postsarrow-up-right, and Pagesarrow-up-right. Find more details on the following functionality herearrow-up-right.

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 pop-up, 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 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 set 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 it. Here you can 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 "Theme template" drop-down:

Save the changes.

Step 5

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 herearrow-up-right.

Last updated