Using templates

Using templates

Start your free trial
Start your free trial

General

Online store speed
Online store speed
Accessibility
Accessibility
Theme updates
Theme updates

Theme styles

Style presets
Style presets
Colors
Colors
Fonts
Fonts
Animation
Animation
Social media
Social media

Header

Announcement bar
Announcement bar
Mobile menu
Mobile menu
Search bar
Search bar

Sections

Products

Product listings
Product listings
Product badges
Product badges
Quick view
Quick view
Quick add
Quick add

Product page

Product template
Product template
Variant chips
Variant chips
Sticky add-to-cart bar
Sticky add-to-cart bar
Sibling product swatches
Sibling product swatches
Product recommendations
Product recommendations

Collection page

Collections template
Collections template
Banner
Banner
Product grid
Product grid
Filters and sorting
Filters and sorting

Cart

Quick cart
Quick cart
Cart page
Cart page
Added-to-cart popup
Added-to-cart popup
Cross sells
Cross sells
Free shipping bar
Free shipping bar
Low inventory warning
Low inventory warning

Pages

Templates
Templates
Home page
Home page
About page
About page
Blogs page
Blogs page
Blog post
Blog post
Collections list
Collections list
Contact page
Contact page
Password page
Password page
Search page
Search page
404 page
404 page

Support

Support policy
Support policy
Shopify vs Theme issues
Shopify vs Theme issues
Store access requests
Store access requests

Using templates

Templates control the content, layout, and style of all pages and are customized in the theme editor. There are templates for every type of page, including the home pageproduct pagecollection pageblog posts, and more.

At first, there is one Default template for every type of page. All product pages, for example, are initially assigned the same default product template. This means that changes made to a default template will apply to all pages that use that template.

To change the content or style of specific pages, you will need to create a new template and then assign that template to those pages in the Shopify Admin.

Alternatively, you can use Dynamic sources to automatically display the correct content or settings for pages that use the same template.

Note: You can change the editing “Context” by clicking on the menu to the left of the template selector. Contexts allow you to make changes to your theme and templates for specific markets. Learn more in Shopify’s guide.

Open templates

Use the Templates selector in the theme editor to find the templates available for each page type. By default, the theme editor opens the Home page template.

See the Theme templates guide for a full overview of all available templates.

Preview specific pages

When you open a template, the theme editor selects a page (e.g. one product or collection) to preview the changes made to that template.

To preview a different page with that template, click Change in the "PREVIEW" section at the top of the sidebar.

Assign templates to pages

If a warning symbol (!) appears next to the page name, this means that the template you are editing is not applied to that page. Go to the page in the Shopify admin and use the Theme template menu to assign a template.

Templates cannot be assigned on unpublished or trial themes. All changes to your templates will be saved but can only be assigned when purchased and published.

Create and assign multiple templates

At first, there is one Default template for every type of page. This means that changes made to a default template will apply to all pages that use that template.

To change the content or style of specific pages, you will need to create a new template and then assign that template to those pages in the Shopify Admin.

Alternatively, you can use Metafields and dynamic sources to automatically display the correct content or settings for pages that use the same template.

icon
STEPS

In your theme editor (Customize):

  1. Use the Templates selector to open the ProductsCollectionsPagesBlogs, or Blog posts templates.
  2. Click Create template.
  3. image
  4. Enter a Name for your new template and click Create template.
  5. The new template will duplicate the settings of the original template.
    image
  6. Under Preview, click Change to preview different pages with this template.
  7. If a warning icon (!) appears, you need to assign the template in your Shopify admin.
    image
  8. To assign a template, go to the page in the Shopify admin and use the Theme template menu to select a specific template.
  9. Templates cannot be assigned on unpublished or trial themes. All changes to your templates will be saved but can only be assigned when purchased and published.
  10. Click Save.