Templates are a group of sections that are configured to give your online store a consistent design and feel. The sections that are available in your templates depends on your theme. In the theme editor, you can find which templates are applied to which pages, and then edit the templates to customize the information that you display to your customers.
When you edit a template, your changes apply to every page that uses the template. For example, if you add a newsletter signup form to a collections template, then all your collection pages that use the default collections template display the newsletter signup form.
Edit your templates
You can edit your templates to add sections to your online store. Some sections contain blocks that can be further customized, but not every section or block has settings or content that can be edited. When you edit your templates, your changes display in real time in the theme editor preview.
Steps:
- From your Shopify admin, go to Online Store > Themes.
- Find the theme that you want to edit, and then click Customize.
- Click the Home page drop-down menu, and then select the template that you want to edit.
- To add a new section to the template, click Add section, and then select a new section for your template.
- Optional: To add a block to your new section, click Add block, and then select a new block for your section.
- Click the new section and blocks to view their settings and options, and then make your changes.
- Click Save.
Considerations for creating a new template
Before you create a new template, review the following considerations:
- You can have multiple templates for your products, collections, pages, blogs, and blog posts, but you can have only 1,000 templates in total.
- You can create a new template only with an Online Store 2.0 theme.
- All themes have a default template for collections, products, blogs, blog posts, and pages. These default templates are what your store's resources and content are displayed with, unless you create alternative templates.
- Any changes you make to a template impact all the pages that use that template. If you want to display some pages of a particular type differently, then you can create a new template based on one that already exists in your theme.
- When you create a new template from an existing template, your new template automatically populates with the same sections as your existing template. You can then remove, add, or hide sections, and edit their content as needed, without impacting the display of pages that use the existing template.
Create a new template
- From your Shopify admin, go to Online Store > Themes.
- Find the theme that you want to edit, and then click Customize.
- Click the Home page drop-down menu, select a template type, and then click Create template.
- In the Create a template dialog, do the following:
- In the Name field, enter a unique name for your new template.
- In the Based on drop-down menu, select the existing template that you want to base your new template on.
- Click Create template.