# How to create a new Template

&#x20;Shopify software allows creating templates for:

* product pages;
* collection pages;
* blogs pages;
* article pages;
* webpages.

&#x20;To create a custom template, you can follow the listed steps:

#### Step 1:

&#x20;Start by creating a template in the theme editor. Press the top drop-down menu and choose a page for which a new template will be created, e.g. Collections:

<figure><img src="/files/ELfFgk9RWrkLShtDMMa3" alt=""><figcaption></figcaption></figure>

#### Step 2:

&#x20;Then, press the button **“Create template”** and edit the fields in the popup:

* write the unique name for the template in the **“Name”** ;
* the new template will be based on the one you choose from the **“Based on”** drop-down;
* hit the button **“Create template”**:

<figure><img src="/files/hR7bZcp39Z9FEZYibH7K" alt=""><figcaption></figcaption></figure>

#### Step 3:

&#x20;Now, we need to go to Shopify Admin and assign a template to a page.

&#x20;Depending on the page for which you created the template, choose a template in the **“Theme template”** drop-down:

* **Products** - *Shopify Admin -> Products*, choose a product:

<figure><img src="/files/S0OIFZnuZGe5iqTdTVJg" alt=""><figcaption></figcaption></figure>

* **Collections** - *Shopify Admin -> Products -> Collections*, choose a collection:

<figure><img src="/files/OC29WweGVOB1WJ0Nibe4" alt=""><figcaption></figcaption></figure>

* **Blog posts** - *Shopify Admin -> Online Store -> Blog posts*, choose a blog:

<figure><img src="/files/ldHNePZuoTwgLdfKXcnf" alt=""><figcaption></figcaption></figure>

* **Blogs** - *Shopify Admin -> Online Store -> Blog posts*, choose a blog, and in the **“Comments”** block, press on the blog:

<figure><img src="/files/XbYBfvvFaOWL8LozhAyJ" alt=""><figcaption></figcaption></figure>

Then, choose a template on the opened page:

<figure><img src="/files/kX0QJbFf8nDzKL6Cpiqa" alt=""><figcaption></figcaption></figure>

* **Pages** - *Shopify Admin -> Online Store -> Pages*, choose a page:

<figure><img src="/files/H4dMkAm1vjt45qpwIvxT" alt=""><figcaption></figcaption></figure>

#### Step 4:

Finally, you can go back to the theme editor, select a template and add specific content to the given template:

<figure><img src="/files/szuTMKTdoIBGzjIvPMyW" alt=""><figcaption></figcaption></figure>

Press the **“Add section”** button to add any section from the **Theme sections** list. Read details on how to set up each section [<mark style="color:blue;">**here**</mark>](https://mpithemes.gitbook.io/shella-shopify-theme/home-page-sections).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mpithemes.gitbook.io/shella-shopify-theme/get-started/how-to-create-a-new-template.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
