How to Safely Update the Empire Theme on Shopify Without Losing Custom Code
We have all been there. You get a notification that a shiny new version of your favorite theme is ready to go, you click update, and suddenly you are met with a dreaded error message. For store owners running the popular Empire theme, seeing an "unable to copy" message during an update can send an instant wave of panic. Questions start racing through your head. Will my site go down? Did I just break my checkout? Will all my custom styling vanish into thin air?
Recently, a merchant named info_15707 reached out to the Shopify Community with this exact problem. They wanted to grab the latest Empire theme improvements, but the automatic copy process hit a wall because of custom code modifications. Fortunately, seasoned community members quickly jumped in with reassurance and practical solutions. If you are sitting on a theme update right now and feeling hesitant, let us walk through how the community breaks down this exact fix.
The Good News: Your Live Store Is Safe
Before doing anything else, take a deep breath. As community members Adirno and waqarsheikh07 pointed out, Shopify is actually built to protect you in these scenarios. When Shopify cannot seamlessly merge your old custom code into a new theme version, it doesn't overwrite your live site. Instead, it neatly tucks the new version away in your draft themes, labeling it something like "Updated copy of Empire".
Your live theme remains completely untouched and online for customers to browse and buy from. All the settings you tweaked in the theme editor—like colors, uploaded banners, sections, blocks, app embeds, and custom text—automatically carry right over into that new draft copy. The only things that get left behind are edits made directly to the underlying code files by you, a hired developer, or apps that injected snippets into your theme.
How to Track Down and Move Your Custom Code
If you aren't a developer, staring at raw code files can feel overwhelming. But as the community discussion highlights, you don't need to read code line by line to get this right. Here is the step-by-step game plan shared by experienced merchants and experts to tackle your Empire theme update safely:
- Back up your current live theme first: Always play it safe. Go to Online Store, click on Themes, click the three dots on your live theme, and choose Download theme file to get a fresh zip backup.
- Use a theme diff app: If you are unsure what actually changed in your code, head to the Shopify App Store and search for a "diff" app. These handy tools let you compare your old theme files and new theme files side by side, highlighting exact changes and lines of code.
- Filter out the clutter: A lot of what turns up in a code comparison will be leftover snippets from deleted apps or old CSS tweaks you don't even use anymore. You don't need to move those over! Only salvage what is actively keeping your current features running.
- Copy custom lines, not entire files: Navigate to Online Store > Themes > click the three dots on your live theme > Edit code. Custom code usually lives in theme.liquid, the CSS files inside Assets, or specific custom snippets. Open those same files in your updated draft copy and paste your custom lines back in, making sure to leave the rest of the updated file intact.
- Preview carefully on mobile and desktop: Before hitting publish, preview your new draft copy thoroughly. Check your homepage, collection pages, product pages, and cart. Waqarsheikh07 shares a great tip here: if you use custom CSS, definitely check it on mobile too, because underlying class names sometimes shift between theme versions, causing older CSS styles to quietly stop applying.
Once you match up those necessary custom lines and double-check your mobile layout, you are ready to publish your brand new, up-to-date theme with total confidence. Community threads like this remind us just how helpful the Shopify ecosystem can be when you hit a roadblock. Whether you are scaling up your current shop or thinking about launching a brand new storefront, having access to experienced peers makes all the difference.