Templates
Customize every page type in the Studio - product, collection, page, blog, post, cart, search and 404 templates, their main sections, alternate templates for single items, and the store's 404 page.
A template is what a type of page is made of. The home page is one; every product page, collection page, store page, blog, blog post, the cart, the search page and the "page not found" page each have one too. You edit them all in the Studio, and like everything there they go to the draft first and reach visitors when you publish.
Every page that isn't the home page shares the home page's announcement bar, header and footer. Between them sits the template: the page's own content in its main section, and any sections you add above or below it.
The templates
| Template | Pages | Main section |
|---|---|---|
| Home page | The store's home page | None: the whole page is sections |
| Products | Each product's page | Product information: photos, title, price, versions and the buttons |
| Collections | Each collection's page | Collection products: the collection's photo, title, text, sorting and products |
| Collections list | The page that lists every collection | Collections list |
| Pages | Store pages from Pages | Page content: the title and text |
| Blogs | A blog's list of posts | Blog posts list |
| Blog posts | Each post | Blog post: title, date, cover, text and tags |
| Cart | The cart | Cart: the lines, discount code, totals and checkout button |
| Search | Search results | Search results: the search field and what matches |
| 404 page | Any address that leads nowhere | Page not found |
Until you change a template, the theme's default draws the page exactly as it always looked: the main section alone, plus Related products under a product. Checkout, customer accounts and policy pages have no template; they take the theme's look, header and footer.
Editing a template
Open the Studio and pick the template in the switcher at the top left, which reads Home page when the Studio opens. Products, collections, pages and blog posts list their Default template and any alternates.
The section list works as on the home page. The header and footer rows are the home page's: changing them changes every page. The left panel says so: "The header and footer are the same on every page."
Previewing with your items
Next to the switcher, Preview with picks which product, collection, page, blog or post the canvas shows the template with. It starts with the first one, or, for an alternate template, the first item that uses it. Draft pages and posts are listed too, marked "draft". The search template previews a search for a word from your first product's name.
Preview in the top bar opens the template you are on, with the picked item, in a new tab. A link to the Studio keeps the template in its address (?template=product.gift), so a reload opens the same one.
Main sections
A main section carries the page's own content, so it is in its template once and stays there. You can move it, and change its settings, but not delete, duplicate or hide it. Its row has a Page content badge.
| Main section | Settings |
|---|---|
| Product information | Photos: Stacked (one under another), Grid, Thumbnails (a big photo with small ones to switch it), or First only. Keep the details in view while scrolling. Sale and new badge. Product type above the title. SKU (products with one version). Description: With details, Full width under the photos, or Hidden. What is in the box for bundles. |
| Collection products | Collection photo, Collection text, Product count, Sorting, In stock filter (a link that keeps only products with a version left), Products per row (Fit the width, or 2 to 5). |
| Collections list | Collections per row, Product count. |
| Page content | Title, Width (Narrow for reading, or Full). |
| Blog posts list | Columns on desktop, Tag links, Cover photos, Excerpts. |
| Blog post | Date and author, Cover photo, Tags, Links to the posts before and after. |
| Cart | None. Its texts are storefront texts; the free shipping bar is in Theme settings > Cart. |
| Search results | Which results show: Products, Pages, Blog posts. |
| Page not found | See The 404 page. |
Sections for any template
Any section from the bank can go above or below a main section, on any template. Three were made for product pages:
| Section | What it shows |
|---|---|
| Related products | Products from the same collections as the product on the page, first. On other templates, the best sellers. Heading (empty: "You may also like" in the visitor's language), How many, Products per row. |
| Collapsible tabs | Up to three rows that open, such as shipping, returns and care, with an optional heading. |
| Trust badges | Three short promises with an icon each: plain box, delivery, returns, secure payment, support, heart or star. |
Alternate templates
An alternate template is a second (or third) template of a type, for some of its items: a gift product with wrapping details, a sale collection with a countdown, a contact page with a newsletter form. Products, collections, pages and blog posts can have them.
Create one
- In the switcher, under the type, click Create template.
- Give it a Name. It is saved as the type and the name in Latin letters, digits and dashes: "Gift wrap" becomes
product.gift-wrap. - Pick what to Start from: the default template or another alternate. The new template starts as a copy of it.
- Click Create template. The Studio opens it.
Use it
In the item's editor, the Theme template card picks the template: Default template, or one of the alternates. It is on the product editor, the collection editor, the page editor and the post editor. Alternates only the draft has so far are marked "not published yet"; until you publish, those items show the default template on the live store. Customize on the card opens the Studio on that template, previewing that item.
In the Studio, the left panel of an alternate says how many items use it.
Rename or delete one
On an alternate, the ... menu next to its name has Rename and Delete template.
- Rename keeps the items on it: the draft previews them with the new name at once, and publishing moves them to it. Until then the live store keeps the old name.
- Delete template asks first and says how many items use it. Those items go back to the default template. The live store keeps the template until you publish, and Undo brings it back.
How a page finds its template
- The item's alternate, when the theme has it.
- Otherwise the type's template.
- A type you never changed uses the theme's default, which draws the page as it always looked.
So an item never breaks: an alternate that was deleted, or that another theme doesn't have, shows the default.
The 404 page
When an address leads nowhere (a deleted product, a mistyped link), the store answers with its 404 page template, in the visitor's language, between the store's header and footer, with the 404 status search engines expect. Edit it like any template: pick 404 page in the switcher.
Page not found has:
| Setting | Default |
|---|---|
| Big 404 | On |
| Heading | Empty: "This page isn't here" in the visitor's language |
| Text | Empty: a line suggesting a search or the home page |
| Button label and Button link | "Back to the store", to the home page |
| Search field | On |
| Products under it | Most sold; or Newest, a Collection, or None. How many and a Products heading (empty: "You might like"). |
Empty texts show the store's storefront texts for the visitor's language, so the page reads right in every language until you write your own. The fields show that text as a placeholder.
A store that doesn't exist at the address gets a plain "page not found" with no theme.
Templates and themes
- Templates are the store's. Switching themes keeps them, like global sections. An uploaded theme can bring its own default templates and alternates; see Templates in a theme file.
- Exported theme files include them. Export as a theme file writes every template the store changed.
- Draft first. Creating, editing, renaming and deleting templates all change the draft. Publish or schedule to put them live.
Related
Customize
The Studio editor - templates, sections and their settings, drag and drop, the section bank, theme settings and presets, device preview, editing language, undo, and how saving differs from publishing.
Pages
Store pages like About us, Contact or FAQ - writing them per language with the text editor, publishing and drafts, the address and its redirect, the search listing and the sharing image.