Shopify templates are a collection of pre-designed sections that give your online store look consistent across all pages. The sections available in your templates depend on the theme you're using. Using the theme editor, you can discover which templates are used on specific pages and easily customize the content to suit your needs.
When you edit a template, the changes you make will apply to all pages using that specific template. For example, if you add a newsletter signup form to a collection template, it will appear on all collections pages that use the default collection template.
You have the freedom to create up to 1000 templates in total, allowing you to tailor your store's appearance precisely to your liking.
How to Edit Templates?
With Shopify's template editing, you have the flexibility to add sections to your online store, improving its overall look and feel. While some sections offer customizable blocks, not all sections or blocks can be edited. As you make changes to your templates, you'll see them in real time through the theme preview window.
Keep in mind that if your screen is larger than 1600 pixels wide and your browser window is fully expanded, or at least 1600 pixels wide, two sidebars will appear. The left-hand sidebar contains the navigation panel, and the right-hand sidebar contains the setting panel, providing easy access to your store's customization options.
Steps to Edit Templates:
On Desktop
- Navigate to Online Store>Themes within your Shopify admin.
- Click Customize on the theme you wish to modify.
- Activate the dropdown menu positioned at the page's upper portion.
- Select the preferred template for editing from the dropdown menu.
- Press + Add section and choose a new section for your template.
- To view its settings and alternatives, click on the newly added section.
- Modify the section or the blocks within it as per your requirements.
- Click Save to save your changes once you're happy with the section.
On iPhone
- Tap on Store from your Shopify app.
- Tap Online Store in the Sales channels section.
- Proceed to tap Manage themes.
- Find and tap on Customize for the theme you wish to edit.
- Tap on Templates.
- Choose the desired template to edit from the dropdown menu.
- Hit + Add section, and then pick a new section for your template.
- Click on the newly added section to explore its settings and options.
- Edit the section or its blocks as per your requirements.
- Click on Save once you are satisfied with your changes.
On Android
- Open the Shopify app and click on Store.
- Click on Online Store under the Sales channels section.
- Select Manage themes.
- Locate the theme you wish to modify and click on Customize.
- Choose the Templates option.
- From the dropdown menu, select the template you want to alter.
- Tap on + Add section and choose a fresh section for your template.
- Access the settings and options of the new section by clicking on it.
- Edit the section or the blocks enclosed within it as needed.
- Once content with your modifications, hit Save.
How to Create a New Template?
Certain template types, such as collections, products, blogs, blog posts, and pages, allow you to display multiple pages on your store using the resources available. Each theme comes with a default template for each type, which your resources will use if you haven't set an alternate template.
It's essential to keep in mind that any changes you make to a template will impact all pages using that particular template. However, if you want to show specific pages differently, you can create a new template based on an existing one from your theme. The new template will automatically include the same sections, giving you the freedom to customize them by adding, removing, or hiding sections without affecting other templates of the same type.
Note: The option to create a new template is only available for Online Store 2.0
Steps to Create New Template:
- Go to Online Store > Themes from your Shopify admin.
- Locate and select the theme you wish to modify, then click on Customize.
- Expand the dropdown menu present at the top of your page.
- Choose a template from the dropdown menu. Click on + Create template.
- Assign a unique name to your template.
- Use the Template drop-down menu again and choose the existing template you want to base your new template on..
- Finally, click "Create template" to save your changes.
On iPhone
- Open the Shopify app and click on the Store tab.
- Navigate to the Online Store under the Sales channels section.
- Click on Manage themes.
- Locate the theme you wish to edit and click on Customize.
- Select the Templates option.
- Choose a template from the dropdown menu and then hit the + Create template button.
- Provide a unique name to your template.
- Select the existing template you want your new template to be based on from the dropdown menu.
- Finally, click on Create template to finish the process.
On Android
- Access your Shopify app and click on Store.
- Select Online Store under the Sales channels section.
- Go ahead and select Manage themes.
- Identify the theme you wish to edit and then tap on Customize.
- Proceed to tap on Templates.
- From the dropdown menu provided, choose a template and then click on + Create template.
- Provide a unique name for your template.
- Decide which existing template you'd like your new template to mirror by making a choice from the dropdown menu.
- Finally, click on Create template to complete the process.
How to Preview Templates?
Template previews are a great tool to test how a template will showcase various resources to your customers before saving or publishing. With template previews, you can see how your pages or products will look with different templates applied.
Keep in mind that templates are assigned to individual pages or products. You can create and edit templates using the theme editor, but you change the assigned template for a specific page or product in your Shopify admin. The best part is, you can have multiple templates for your pages and products, allowing you to customize their appearance to perfection.
Please note that you can only preview pages and products that are currently active in your Shopify admin.
How to Preview an Alternate Template?
You can preview a different template for your pages or products to see how they will look before making any changes.Steps to Preview Alternate Templates:
- Go to Online Store > Themes.
- Find the theme you want to edit and click on "Customize".
- Open the drop-down menu at the top of the page.
- Use the "Template" drop-down menu to select a template.
- In the sidebar, click on "Change."
- Select the product or page you want to preview with the chosen template.
On iPhone
- Open the Shopify app and tap on "Store."
- In the "Sales channels" section, tap on "Online Store."
- Next, tap on "Manage themes."
- Find the theme you want to edit and tap on "Customize."
- Now, tap on "Templates."
- Use the "Template" drop-down menu to select a template.
- In the sidebar, click on "Change."
- Select the product or page you want to preview with the chosen template.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
On Android
- Move to the Online Store by tapping on it in the Sales channels section.
- Choose the Manage themes option by tapping on it.
- Identify and tap on the Customize option of the theme you want to edit.
- Press on Templates to proceed.
- Use the dropdown menu to choose a template.
- Click on Change in the sidebar.
- Select the product or page you wish to preview with your chosen template.
How to Apply a New Template?
You have the flexibility to change the assigned template for various sections in a published theme, including pages, products, collections, blogs, and blog posts. To do this, head to your Shopify admin. The available template options will be based on the templates currently active in your live theme.
For products and collections, you can assign templates individually for each item, or you can use the Bulk editor to apply templates to multiple items at once. Please note that this process is done outside the theme editor, making it easy and efficient to manage your templates.
How to Apply a New Template to a Page?
- Navigate to Online Store > Pages from your Shopify admin dashboard.
- Select the title of the store page you wish to modify.
- Find the Online Store section and choose a different theme template from the dropdown menu for the selected page.
- Hit the Save button to apply the changes.
On iPhone
- Tap Store in the Shopify app.
- Tap on the Online Store under the Sales channels section.
- Select Pages.
- Click on the title of your store page.
- Select a new theme template from the dropdown menu in the Online store section. Apply this to the selected page.
- Don't forget to click on Save.
On Android
- Click on Store from the Shopify app.
- Next, under the Sales channels section, click on Online Store.
- Select Pages.
- Choose the title of your store page.
- Within the Online store section, from the dropdown menu, choose a new theme template to apply it to your selected page.
- Finally, click Save.
How to Apply a New Template to a Product?
Navigate to the Products section from your Shopify admin.
Locate the product you wish to modify using the search filter, or select it from the list of existing products.
Choose a new theme template for the selected product using the dropdown menu in the Online store section.
Press Save to apply the changes.
How to Apply a New Template to a Collection?
- Navigate to Products > Collections from your Shopify admin.
- Employ the search filter to find the collection you wish to edit or select your desired collection from the list of existing ones.
- Within the Online store section, utilize the dropdown menu to assign a new theme template to your chosen collection.
- Press the Save button.
How to Apply a New Template to Your Blog Post?
On Desktop
- Navigate to the Blog Posts section under the Online Store from your Shopify admin dashboard.
- Find the blog post you wish to modify using the search filter, or directly choose the blog from the list of all blog posts displayed.
- Select a fresh theme template for your blog post from the dropdown menu available in the Online store area.
- Don't forget to click on the Save button to secure your changes.
On iPhone
- Tap Store on the Shopify app.
- Tap Online Store in the Sales channels section.
- Select Blog posts.
- Use the search filter to find the blog post you want to modify, or choose the product from the existing blog posts list.
- Select a new theme template for the chosen blog post from the dropdown menu in the Online store section.
- Hit Save.
On Android
- Tap Store on the Shopify app.
- Next, in the Sales channels section, select Online Store.
- Proceed to choose Blog posts.
- Use the search filter to find the blog post you wish to alter, or select the product from the list of available blog posts.
- Within the Online store section, select a new theme template from the dropdown menu for the chosen blog post.
- Lastly, click Save to implement changes.
How to Apply a New Template to Your Blog?
- Navigate to Blog Posts in Online Store via your Shopify admin
- Select Manage blogs.
- Find the blog you wish to modify by using the search filter or, alternatively, choose the product from the list of existing blogs.
- Within the Online store section, pick a new theme template from the dropdown menu to apply to your chosen blog.
- Hit the Save button.
On iPhone
- From the Shopify app, tap Store.
- In the Sales channels section, tap Online Store.
- Tap Blog posts.
- Tap the
...
button beside Blog posts, and then select Manage blogs. - Use the search filter to locate the blog that you want to change, or click the product from the list of existing blogs.
- In the Online store section, use the dropdown menu to select a new theme template to apply to the selected blog.
- Click Save.
On Android
- Open the Shopify app and tap on "Store."
- In the "Sales channels" section, tap on "Online Store."
- Now, tap on "Manage themes."
- Find the theme you want to edit and tap on "Customize."
- In the next screen, tap on "Templates."
- Use the "Template" drop-down menu to select a template.
- In the sidebar, click on "Change."
- Finally, choose the specific product or page you want to preview with the selected template.
How to Manage Your Templates?
When it comes to renaming or deleting your templates, it's essential to use the code editor. However, please exercise caution while editing your template files, as it can potentially lead to issues with your online store.
How to Rename a Template?
- Go to Online Store then Themes from your Shopify admin dashboard.
- In the chosen theme with the template you wish to rename, click the ... button and select Edit code.
- Within the code editor, locate the templates folder. Click on the template you intend to rename, then select Rename file.
- Provide the new template name and hit Rename file to finalize your changes.
How to Delete a Template?
- Navigate to your Shopify admin, then select Online Store followed by Themes.
- Identify the theme from which you wish to delete a template, then click the ... button followed by Edit code.
- Once in the code editor, locate the templates folder. Choose the template that you aim to delete, then click on Delete file. Note that any resources linked to this template will display with the default template until you assign another.
Frequently Asked Questions and Answers (FAQ's)
1. What are Shopify templates, and how do they give my online store a consistent look?
Shopify templates are pre-designed sections that provide a consistent look and feel to your online store. The sections available depend on your chosen theme. Using the theme editor, you can customize templates to match your brand's unique style.
2. How can I edit templates in bulk on Shopify?
Unfortunately, the Bulk editor for blog posts and pages is no longer available on Shopify. However, you can still use it to apply a new template to multiple products or collections at the same time, streamlining your store management process.
3. Can I customize templates for pages and products differently?
When you edit a template, the changes apply to all pages or products using that specific template. However, if you want to display specific pages differently, you can create a new template based on an existing one and customize it without affecting other templates of the same type.
4. How many templates can I create in total on Shopify?
You can create up to 1000 templates on Shopify, giving you the freedom to tailor your store's appearance precisely to your liking.
5. Can I preview templates before making changes on Shopify?
Yes, you can preview templates to see how they will display different resources to your customers. Template previews allow you to test how your pages or products will look with different templates applied before saving or publishing.
6. How can I apply a new template to a page or product on Shopify?
To apply a new template, navigate to the specific page or product, and choose a different theme template from the dropdown menu in the Online store section. Click "Save" to apply the changes.
7. Is there a limit to the number of templates I can assign to pages and products?
You can have multiple templates for your pages and products on Shopify, allowing you to customize their appearance to perfection.
8. Can I manage and rename my templates on Shopify?
Yes, you can manage templates and rename them using the code editor in Shopify. However, be cautious while editing template files, as it can lead to potential issues with your online store.