> For the complete documentation index, see [llms.txt](https://erickson.gitbook.io/machina/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://erickson.gitbook.io/machina/theme-settings/introduction.md).

# Introduction

A template controls how your page will look and be used when a customer visits your site. Templates control what is rendered on each type of page in a theme. Template files are hosted in the `templates` directory of the theme.

{% hint style="success" %}
Machina has been built for Online Store 2.0 which includes a set of features and feature improvements that make themes and theme apps easier to build, more flexible, and more maintainable.
{% endhint %}

Online Store 2.0 introduces a new JSON templates that allows you add new and existing sections to most pages in your theme and add and remove sections from any page directly in the Shopify theme editor.

## Locating templates and their linked settings in the Theme Editor

There are two methods available for finding your templates settings.

The first is directly in the `Theme Editor`, where you can use the dropdown to view all templates.

You will see an arrow next to the templates where there are 2 or more templates available. You can also see how many times the template has been assigned to a page, product, collection and so on.

## Locating templates and their linked settings in the Theme Admin

You can also view templates per product, collection, blog or page through the Admin interface. For example, click on any product within the admin panel where you would add a product price or change inventory totals, here you will see a section towards the bottom of the page on the right hand side called `Online Store` with a dropdown menu of available templates that can be assigned.

{% hint style="info" %}
Remember to fully familiarise yourself with the settings available on each page so you can comprehensively edit your storefront’s templates.
{% 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://erickson.gitbook.io/machina/theme-settings/introduction.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.
