Key Concepts › Templates
Overridable Templates
These are the template names the storefront looks for. A theme provides the ones it has designed; any it leaves out are rendered by the platform's default theme instead — see Template Fallbacks.
| Template | Renders | Served |
|---|---|---|
layout.jinja | The frame every page extends | Required |
home.jinja | / | Yes |
404.jinja | Any address the store does not serve | Yes |
products.jinja | /products | With product pages |
product.jinja | /products/{slug} | With product pages |
categories.jinja | The category index | With product pages |
category.jinja | /categories/{slug} | With product pages |
page.jinja | /pages/{slug} | With content pages |
search.jinja | /search | With search |
cart.jinja | /cart | With the cart |
checkout.jinja | Checkout | With checkout |
order.jinja | An order's confirmation | With checkout |
layout.jinja is the one template a theme cannot leave out. It is where the platform tags go,
and a theme without it — or with a layout that does not place both tags — is refused.
A template for a page that is not served yet is still compiled and checked when your theme loads, so it can be written and tested now. It simply is not rendered until its page exists.
Partials are yours
Anything a template includes — partials/header.jinja, partials/product-card.jinja — is
named by you and never rendered on its own. The storefront only ever asks for the names in the
table above.