Update theme versions while keeping customisations as a Shopify developer

One of the biggest problems as a Shopify developer is updating customised themes to the current version.

Say what? Just click the update button, and you have the new theme ๐Ÿ˜…

This may be true for themes that are untouched by third-party customisations. But when developers already worked on that theme, all theme customisations will be gone after a theme update.

What is the best way of safely updating an already customised theme?

For now, the only reliable option is to transfer all the old customisations by hand into the updated theme. But you can make your life a little bit easier by using these tools and methods.

๐“๐จ๐จ๐ฅ๐ฌ

๐‘†โ„Ž๐‘œ๐‘๐‘–๐‘“๐‘ฆ ๐ถ๐ฟ๐ผ
Let's you easily pull themes on your local machine and therefore be able to compare code changes

๐บ๐‘–๐‘กโ„Ž๐‘ข๐‘ ๐‘–๐‘›๐‘ก๐‘’๐‘”๐‘Ÿ๐‘Ž๐‘ก๐‘–๐‘œ๐‘›
To actually see and compare changes, you need a Git repository for your current theme. I'm recommending GitHub because it offers a native Shopify integration.

๐Œ๐ž๐ญ๐ก๐จ๐

1. Download the newest version of your theme.
2. Open your current live theme on your local machine with the CLI.
3. Create Github connection (if not already connected).
4. Use ๐˜ด๐˜ฉ๐˜ฐ๐˜ฑ๐˜ช๐˜ง๐˜บ ๐˜ต๐˜ฉ๐˜ฆ๐˜ฎ๐˜ฆ ๐˜ฑ๐˜ถ๐˜ญ๐˜ญ and select the freshly added newest version.
5. Go through the changes and adjust the old customizations to fit the new theme version
6. After testing everything, create a backup of live and use ๐˜ด๐˜ฉ๐˜ฐ๐˜ฑ๐˜ช๐˜ง๐˜บ ๐˜ต๐˜ฉ๐˜ฆ๐˜ฎ๐˜ฆ ๐˜ฑ๐˜ถ๐˜ด๐˜ฉ to push to live.

With this method, you now have the updated theme version, including all your old customisations.

Extra tip: While developing a theme, keep all your theme customisations as separate from the rest of the code as possible. This will make everything much easier ๐Ÿ˜Ž

Is this a quick and easy fix? Not really.
Is this the only reliable option for now? Unfortunately, yes!

Back to blog

Want to learn more?

Join my Shopify developer course programm and bring your skills to the next level!

Join now