# How to show different content on different pages/collections

To show different content on pages/collections, the templates must be created in the theme editor as shown below:\
\
![](/files/7GFRg608YKjpfoi7vRIk)\
\
This template must be assigned to the respective collection or page as shown below:

<figure><img src="/files/46xVYdymcfw7HIlLgDSl" alt=""><figcaption></figcaption></figure>

Additionally, it is important to ensure that **the theme with the created templates is published on your store** so that you can view and utilize those templates within the Shopify pages and collections.\
\
By creating and assigning templates to specific collections or pages, you can customize the content and layout to meet your specific needs. This allows you to showcase unique information or design elements tailored to each collection or page on your store.

For details regarding the Shopify templates, please go through <https://help.shopify.com/en/manual/online-store/themes/theme-structure/templates>


---

# 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://shinedezign.gitbook.io/yuva-knowledgebase/sections/how-to-show-different-content-on-different-pages-collections.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.
