Home > Shopify Tutorials > Roll back to an older version of your theme

How to roll back to an older version of your theme in Shopify

Last updated: September 01, 2024
Written and researched by experts at AvadaLearn more about our methodology

By Sam Nguyen

CEO Avada Commerce

Whether a recent update didn’t go as planned or changes just didn’t work out, knowing how to restore a previous theme can be a lifesaver. This guide will show you the easy steps to quickly revert and keep your store looking just right.

To Upload a new image for your gift card

Step 1: Click Themes

Log in to Shopify. Go to the admin page and tap on Online Store. Then, go to Themes.

Upload a new image for your gift card

Step 2: Choose Edit code

All of the themes will appear for you to choose. Select one theme by tapping on Actions and choose Edit code.

Upload a new image for your gift card

Step 3: Select the edited file

In this step, you will find the edited file which makes you unsatisfied in the Templates directory. After you’ve found it, press on it.

Upload a new image for your gift card

Step 4: Press on Older versions

Next to the name of the file on the top, Older versions is where we need to click on. You can view the picture below.

Upload a new image for your gift card

Step 5: Choose the older version you want

A drop-down menu will be shown. It displays all of the versions of the theme you have chosen. Select the one you expect it to roll back by tapping on a datestamp. Afterward, click Save.

Upload a new image for your gift card

Step 6: Optional: Select Preview

This step is optional. If you want to make sure that it meets your requirement now, you can preview your change by select Preview.

Upload a new image for your gift card

Summary

Rolling back to an older version of your Shopify theme is a valuable skill for maintaining your store’s design and functionality. The process, as outlined in this guide, is straightforward: access your themes, edit the code, select the file you want to revert, choose the desired older version, and save your changes. This method allows you to quickly undo unwanted modifications and restore your store to a previous, well-functioning state.

Remember, while this feature provides a safety net, it’s always wise to backup your theme before making significant changes. By mastering this rollback technique, you gain more control over your store’s appearance and can confidently experiment with theme edits, knowing you can easily revert if needed.


Sam Nguyen is the CEO and founder of Avada Commerce, an e-commerce solution provider headquartered in Singapore. He is an expert on the Shopify e-commerce platform for online stores and retail point-of-sale systems. Sam loves talking about e-commerce and he aims to help over a million online businesses grow and thrive.