Templates

Templates control what's rendered on each type of page in a theme.

Each page type in an online store has an associated template type. You can use the template to add functionality that makes sense for the page type. For example, to render a product page, the theme needs at least one template of typeproduct. Similarly, to render a metaobject page, the theme needs at least one template of typemetaobject/{metaobject-type}, for example:metaobject/bookormetaobject/author, depending on the type of metaobject definition.

You can createmultiple versions of the same template typeto create custom templates for different use cases. For example, you can create a separate product template for outerwear products, or a separate page template for pages with video content.

Templates control what's rendered on each type of page in a theme.