Book a call

How do I back up my Shopify theme before making changes?

Updated

Duplicate the theme and make your changes on the copy, then publish it once it works. For a copy kept outside Shopify, also download the theme file, which Shopify emails to you as a zip.

A theme backup covers the theme only. Shopify says theme downloads don't include products, collections, menus, pages, blog posts or images and other files in Content, then Files, so those need their own export.

The code editor also keeps a timeline of earlier versions of each file, but it has limits: it restores one file at a time, can't bring back deleted files, and older versions may no longer be there. Treat it as a safety net, not a backup.

Check it yourself

  1. 1

    In Shopify admin, go to Online Store, then Themes. Next to your current theme, open the three-dot menu and click Duplicate.

  2. 2

    Rename the copy with the date and what you are changing, so you can find it later.

  3. 3

    Make your changes on the copy, and use Preview to test it on a phone and a computer before you publish it.

  4. 4

    For an offline copy, open the same menu and click Download theme file. Shopify emails a zip file to the email address on your staff account.

  5. 5

    If you reach your plan's theme limit, download an old copy and then delete it to make room. Deleting a theme is permanent.

  6. 6

    If someone edits theme code often, connect the theme to GitHub with Shopify's GitHub integration, so every change is saved as a commit.

When to ask for help

If the change involves theme code, checkout or apps that add code to the theme, ask for help. A duplicate protects the theme, but it can't undo changes to apps or store settings.

Book a call

Pick a time that suits you. The calendar only shows slots we're actually free, and you get an invite straight away.

Booking runs on Google Calendar. Open it in a new tab