Skip to Content
StarsellDocs
Online store

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

TemplatePagesMain section
Home pageThe store's home pageNone: the whole page is sections
ProductsEach product's pageProduct information: photos, title, price, versions and the buttons
CollectionsEach collection's pageCollection products: the collection's photo, title, text, sorting and products
Collections listThe page that lists every collectionCollections list
PagesStore pages from PagesPage content: the title and text
BlogsA blog's list of postsBlog posts list
Blog postsEach postBlog post: title, date, cover, text and tags
CartThe cartCart: the lines, discount code, totals and checkout button
SearchSearch resultsSearch results: the search field and what matches
404 pageAny address that leads nowherePage 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 sectionSettings
Product informationPhotos: 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 productsCollection 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 listCollections per row, Product count.
Page contentTitle, Width (Narrow for reading, or Full).
Blog posts listColumns on desktop, Tag links, Cover photos, Excerpts.
Blog postDate and author, Cover photo, Tags, Links to the posts before and after.
CartNone. Its texts are storefront texts; the free shipping bar is in Theme settings > Cart.
Search resultsWhich results show: Products, Pages, Blog posts.
Page not foundSee 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:

SectionWhat it shows
Related productsProducts 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 tabsUp to three rows that open, such as shipping, returns and care, with an optional heading.
Trust badgesThree 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

  1. In the switcher, under the type, click Create template.
  2. 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.
  3. Pick what to Start from: the default template or another alternate. The new template starts as a copy of it.
  4. 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

  1. The item's alternate, when the theme has it.
  2. Otherwise the type's template.
  3. 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:

SettingDefault
Big 404On
HeadingEmpty: "This page isn't here" in the visitor's language
TextEmpty: a line suggesting a search or the home page
Button label and Button link"Back to the store", to the home page
Search fieldOn
Products under itMost 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.

On this page