How to delete or rename a Dawn Theme template?

How can I delete and / or rename a template in Dawn Theme?

Hi Montyread,

BEFORE DOING ANY OF THE ABOVE BACKUP YOUR THEME FIRST

https://help.shopify.com/en/manual/online-store/themes/managing-themes/downloading-themes

How do you delete a template?

To delete a template, you need to use the code editor.

Steps:

  1. From your Shopify admin, go to Online Store > Themes.
  2. Find the theme you want to delete a template from, and then click Actions > Edit code.
  3. In the code editor, find the templates folder. Click on the name of the template you want to delete, and then click Delete file. If you have any resources assigned to that template, they will be displayed with the default template until you assign a different one.

How do you change my template’s name?

You can’t change a template’s name after it has been created. If you want a template with a new name, then you can create a new template based on the old one, and give it the desired name before deleting the original template.

BEFORE DOING ANY OF THE ABOVE BACKUP YOUR THEME FIRST

https://help.shopify.com/en/manual/online-store/themes/managing-themes/downloading-themes

Thanks @Arslan welcome to the community great guide. When the word “delete” is being used please always include a warning for theme backup/export/duplication will save a lot of headache.

Posts can be edited up to three hours after posting.

Merchants with complex theme setups should make careful note of Arslan’s point in #3 of that default template behavior.

What that means is if you have alternate templates that have specific business logic (examples: pre-order’s , purchase limits, customer locks , purchase restrictions ,etc ) then by deleting an alternate template that then means the business logic restrictions are nuked and those products get basic add to cart behavior which can be undesirable. If you have that situation I recommend having an alternate template that has all purchasing options disabled, apply that alt template to those products before transitioning between templates by renaming or deleting templates.

Hi Paul,

Updated the reply.

Thanks for reminding me. I appreciate.

yes, thanks.. that is a good solution… it worked, and I was able to rename the template file as well.

NEXT QUESTION: is download the template the same as template backup?

Hi @montyread ,
You’re welcome!

…is download the template the same as template backup?
These terms are used interchangeably. There are two terms when you talk about the theme backup.

  1. Downloading themes

  2. Duplicating themes

When you download a theme the theme files are emailed to the store email address and then you can download the theme files to your local computer. Mostly, users download the theme to:

  • Use an editor on their computer to make changes to the theme.
  • Create a backup of the theme.
  • Save the theme for later use if they’ve reached the limit of 20 themes.

Theme downloads don’t include images. If you want to upload the theme to another store, then you need to re-add images separately. You can learn more about downloading a theme.

On the other hand, when you want to make any change to your theme, it’s a good idea to make a backup copy of your theme. The duplicate theme appears on the Themes page. It is named Copy Of + the name of the theme that you duplicated. It’s not downloaded to your local computer. You can learn more about Duplicating the themes.

Hope this helps to understand both points.

ofcourse, again, we need to dive into code to do this :cry:

When is shopify going to let us do this with a click?