# 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="https://1204500216-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McsaSlZSE2uMqzAxy2S%2Fuploads%2FSLU6xzGVeaLpwSqgR1EZ%2Ftemplate_editor.png?alt=media&#x26;token=630486cd-3ed4-4545-b139-661fb4392094" 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="https://1204500216-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McsaSlZSE2uMqzAxy2S%2Fuploads%2Fyb1S5QxboN6do1ouvMCs%2Ftemplate_create%20template.png?alt=media&#x26;token=bad4de81-3263-48de-893e-107c2b06eb76" 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="https://1204500216-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McsaSlZSE2uMqzAxy2S%2Fuploads%2FlqESxuVFpuB6IR70Kfi5%2Ftemplate_products.png?alt=media&#x26;token=5db07805-f114-4649-aad2-3e697ea86e81" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://1204500216-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McsaSlZSE2uMqzAxy2S%2Fuploads%2FSaU3Y5nOvRNgSq2Po0TW%2Ftemplate_collections.png?alt=media&#x26;token=5c191a2b-8f24-495e-a37a-f8f8a1d33ba5" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://1204500216-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McsaSlZSE2uMqzAxy2S%2Fuploads%2Fwgc9zr0ts9MmxEvIdCMt%2Ftemplate_blog%20post.png?alt=media&#x26;token=84ff4b71-750a-44b2-88c1-b983b409c0ec" 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="https://1204500216-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McsaSlZSE2uMqzAxy2S%2Fuploads%2FFlKpOAc6QKzmW1xTM5uR%2Ftemplate_blogs.png?alt=media&#x26;token=4534fd15-b191-44c4-b005-1bdc711d35ed" alt=""><figcaption></figcaption></figure>

Then, choose a template on the opened page:

<figure><img src="https://1204500216-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McsaSlZSE2uMqzAxy2S%2Fuploads%2Fh7XyTVEJuv3S3cfeMv0l%2Ftemplate_%20edit%20blogs.png?alt=media&#x26;token=a29c76bc-e67c-4df1-9ecf-8eceed2fe1de" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://1204500216-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McsaSlZSE2uMqzAxy2S%2Fuploads%2FdtuLHwE7AIx37vJzTZxI%2Ftemplate_pages.png?alt=media&#x26;token=3b1d2825-c5bf-4f52-83be-9ac5a6c4fa37" 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="https://1204500216-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McsaSlZSE2uMqzAxy2S%2Fuploads%2FrNWNmzke9A5HKpEfd2mx%2Fcustom%20template.png?alt=media&#x26;token=c85166cc-bfff-45b4-8a21-4adeb0a96999" 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).
