Skip to content

Create a custom template

This guide describes how to create a custom template for your store's products, collections, pages, blogs, and blog posts (articles).

Note

For more information about customizing templates, refer to Shopify help: Templates.

To create a custom template:

Create your template in Theme editor

To create your template in Theme editor, complete the following steps.

  1. On your store's Shopify admin page, locate the theme you want to customize, and then select Customize to open your theme in Theme editor.

  2. At the top of Theme editor, use the drop-down to choose the area of your online store that relates to your new template, and then select Create template.

    For example, select Products, Collections, Pages, Blogs or Blog posts.

    The drop-down menu at the top of Theme editor.

  3. On the Create a template pane, in the Name text box, enter a name for your template.

  4. On the Create a template pane, use the Based on drop-down to select an existing template to use as a base for your new template, and then select Create template.

Edit your template in Theme editor

To preview and edit your template in Theme editor, complete the following steps.

  1. On your store's Shopify admin page, locate the theme you want to customize, and then select Customize to open your theme in Theme editor.

  2. At the top of Theme editor, use the drop-down to select the template you want to preview or edit.

    For example, select Products > Default product.

    The drop-down menu at the top of Theme editor.

  3. In Theme editor's sidebar, select Change and then choose a resource to preview or edit.

    For example, if you're previewing the Products > Default product template, select Change and then choose a product to preview or edit.

  4. Use Theme editor's sidebar to add or remove sections and blocks to suit your requirements.

  5. Select Save to save your changes.

Assign your template in Shopify admin

For your current published theme, complete the following steps to assign your template to a product, collection, page, blog or blog post (article).

  1. On your store's Shopify admin page, choose the menu item that corresponds to the template you're assigning. The corresponding menu items are Products, Collections, Online Store > Pages, and Content > Blog posts.

    For example, in the following image, the Content > Blog posts menu item is selected for assigning a template to a blog or blog post (article).

    The main menu is Shopify admin,

  2. Select the resource you're applying your template to.

    For example, select a specific product, collection, page, or blog post (article). For a blog, select Manage blogs, and then choose the blog you're applying your template to.

  3. Locate the Theme template drop-down, and then select a template to apply.

    The Theme template drop-down in the Shopify Product editor.

  4. Select Save to save your changes.