# Use custom templates

Custom templates can be created to include drag-and-drop sections on almost any page. These templates can be used for content pages, collection pages, product pages, blog pages, and article pages.

Visit the Shopify help center to [learn more about using templates](https://help.shopify.com/en/manual/online-store/themes/theme-structure/templates).

## How to create and use custom templates

We'll create a custom page template, customize it, and assign it to a page. This same process can be used for other templates, such as products or collections.

{% stepper %}
{% step %}
**Create a new template**

* From your Shopify admin, go to **Online Store** > **Themes**.
* Find the theme that you want to edit, and then click **Customize**.
* Click the **Home page** drop-down menu, select a template type, and then click **Create template**.
* In the **Create a template** dialog, do the following:
  * In the **Name** field, enter a unique name for your new template.
  * In the **Based on** drop-down menu, select the existing template that you want to base your new template on.
* Click **Create template**.
  {% endstep %}

{% step %}
**Previewing templates**

* From your Shopify admin, go to **Online Store** > **Themes**.
* Find the theme that you want to preview a template with, and then click **Customize**.
* Click the **Home page** drop-down menu, and then select the template that you want to use.
* In the **Preview** section in the theme editor sidebar, click **Change**.
* Click the resource that you want to preview with the selected template.
  {% endstep %}

{% step %}
**Apply a new template to a page**

* From your Shopify admin, go to **Online Store** > **Pages**.
* Click the page that you want to apply a new template to.
* In the **Online store** section, click the **Theme template** drop-down menu, and then select the template that you want to apply to your page.
* Click **Save**.
  {% endstep %}

{% step %}
**Apply a new template to a product**

* From your Shopify admin, go to **Products**.
* Click a product that you want to apply a new template to.
* In the **Theme template** section, click the drop-down menu and then select the template that you want to apply to your product.
* Click **Save**.
  {% endstep %}

{% step %}
**Apply a new template to a collection**

* From your Shopify admin, go to **Products** > **Collections**.
* Click a collection that you want to apply a template to.
* In the **Theme template** section, click the drop-down menu and then select the template that you want to apply to your collection.
* Click **Save**.
* From your Shopify admin, go to **Products**.
* Click a product that you want to apply a new template to.
* In the **Theme template** section, click the drop-down menu and then select the template that you want to apply to your product.
* Click **Save**.
  {% endstep %}

{% step %}
**Apply a new template to a blog**

* From your Shopify admin, go to **Online Store** > **Blog posts**.
* Click **Manage blogs**.
* Click a blog that you want to apply a template to.
* In the **Online store** section, click the **Theme template** drop-down menu, and then select the template that you want to apply to your blog.
* Click **Save**.
  {% endstep %}

{% step %}
**Apply a new template to a blog post**

1. From your Shopify admin, go to **Online Store** > **Blog posts**.
2. Click a blog post that you want to apply a template to.
3. In the **Online store** section, click the **Theme template** drop-down menu, and then select the template that you want to apply to your blog.
4. Click **Save**.
   {% endstep %}
   {% endstepper %}

## Considerations for creating a new template <a href="#considerations-for-creating-a-new-template" id="considerations-for-creating-a-new-template"></a>

Before you create a new template, review the following considerations:

* You can have multiple templates for your products, collections, pages, blogs, and blog posts, but you can have only 1,000 templates in total.
* You can create a new template only with an [Online Store 2.0](https://help.shopify.com/en/manual/online-store/themes/managing-themes/upgrading-themes) theme.
* All themes have a default template for collections, products, blogs, blog posts, and pages. These default templates are what your store's resources and content are displayed with, unless you create alternative templates.
* Any changes you make to a template impact all the pages that use that template. If you want to display some pages of a particular type differently, then you can create a new template based on one that already exists in your theme.
* When you create a new template from an existing template, your new template automatically populates with the same sections as your existing template. You can then remove, add, or hide sections, and edit their content as needed, without impacting the display of pages that use the existing template.


---

# 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://help.brickspacelab.com/slab/guides/basics/use-custom-templates.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.
