> For the complete documentation index, see [llms.txt](https://staylime.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://staylime.com/docs/avante-themes/templates/overview.md).

# Overview

Templates are the foundation of how every page in your store looks and behaves. Each template is a collection of sections and blocks — configured independently in the Theme Editor. One template can look completely different from another: different sections, different content order, different blocks.

{% hint style="warning" %}
**The key rule:** changes to a template apply to all pages assigned to that template. To give one product or page a different layout, create a separate template and assign it there.
{% endhint %}

{% hint style="success" icon="sparkles" %}
For comprehensive information on Shopify's templates, please refer to [this article](https://help.shopify.com/en/manual/online-store/themes/theme-structure/templates).
{% endhint %}

***

### Available templates in Avante themes

<table data-search="false"><thead><tr><th>Template</th><th>Used for</th></tr></thead><tbody><tr><td><a href="/pages/nGO2nwZ1dagNDBgeyPoR"><strong>Default product</strong></a></td><td>All products by default</td></tr><tr><td><strong>Pre-order</strong></td><td>Products available for pre-order</td></tr><tr><td><a href="/pages/bvIJpSioSmDHt9MDjTAH"><strong>Default collection</strong></a></td><td>All collection pages</td></tr><tr><td><strong>Collections list</strong></td><td>The <code>/collections</code> page</td></tr><tr><td><strong>Default blog</strong></td><td>Blog listing page</td></tr><tr><td><strong>Default blog post</strong></td><td>Individual blog articles</td></tr><tr><td><strong>Cart</strong></td><td>The <code>/cart</code> page</td></tr><tr><td><a href="/pages/WiFus9MZ39tDLqzJ8GuZ"><strong>Search</strong></a></td><td>The <code>/search</code> page</td></tr><tr><td><strong>Page</strong></td><td>Standard pages (About, Contact, FAQ, etc.)</td></tr><tr><td><strong>Password</strong></td><td>Store password page</td></tr><tr><td><strong>404</strong></td><td>Page not found</td></tr><tr><td><strong>Gift card</strong></td><td>Gift card confirmation page</td></tr><tr><td><strong>Quick view</strong></td><td>Product quick view popup</td></tr></tbody></table>

***

### How to create a new template

{% stepper %}
{% step %}
In the Theme Editor, use the page selector at the top to open **Products → Create template**

<figure><img src="/files/VhPgogc38ZUJutTxYAJz" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Enter a name for the new template

<figure><img src="/files/tZhZUcEt1Fraxh7BU4Go" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Select an existing template to base it on, then click **Create template**

The new template is a copy — customize it freely without affecting the original.
{% endstep %}
{% endstepper %}

{% hint style="warning" icon="triangle-exclamation" %}
Changes to a template apply to **all pages assigned to that template**.
{% endhint %}

***

### How to assign a template to a page or product

**For products:** Go to **Shopify Admin → Products** → open a product → find **Theme template** on the right → select a template → Save.

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

**For pages:** Go to **Shopify Admin → Online Store → Pages** → open a page → find **Theme template** on the right → select a template → Save.

<figure><img src="/files/7yulzdhbPd4z9TvQevkX" alt=""><figcaption></figcaption></figure>

{% hint style="warning" icon="triangle-exclamation" %}
A template only appears in the dropdown if it exists in your **currently published live theme**. Templates created in a \[DEV] copy won't show here — create them in your live theme first.
{% endhint %}

{% hint style="success" icon="lightbulb" %}
Building a new page from scratch — template, layout, and menu? See the [**full walkthrough →**](/docs/avante-themes/faq/pages-and-templates/how-do-i-create-a-new-page-with-a-custom-template.md)
{% endhint %}

***

### Rename or delete a template

Renaming and deleting templates requires the code editor.

**To rename:**

1. Go to **Shopify Admin → Online Store → Themes** → click **...** → **Edit code**
2. Open the `templates` folder → click the template name → **Rename file**
3. Enter a new name → **Rename file**

**To delete:**

1. Go to **Shopify Admin → Online Store → Themes** → click **...** → **Edit code**
2. Open the `templates` folder → click the template name → **Delete file**

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

{% hint style="success" icon="sparkles" %}
Any products assigned to a deleted template automatically revert to the default template.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://staylime.com/docs/avante-themes/templates/overview.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
