Shopify theme updates without losing your SEO edits
The theme update button looks harmless. “A new version of your theme is available.” One click, a copy appears in your theme library, and you publish it.
Then a week later someone notices the product schema has gone back to the theme’s default, the noindex on internal search pages has disappeared, and the hand-written title tag logic for collections is nowhere to be found.
That’s how Shopify theme updates work, and it catches people out constantly. When you update a theme from the Theme Store, Shopify carries over your settings and content: the things you changed in the theme editor. It does not carry over edits to the code. Anything someone typed into a Liquid file is left behind in the old version.
On the client stores I look after, a lot of SEO fixes live in exactly that code. So here’s how I handle updates without losing them.
Why SEO edits are especially at risk
Most SEO changes on Shopify can’t be made in the admin. They’re code changes:
- adjusting the
<title>and meta description logic intheme.liquid - adding or fixing structured data on product or article templates
- adding
noindexto search results, filtered pages or thin templates - changing heading levels (a theme that wraps the logo in an
<h1>on every page, for example) - adding
hreflang, canonical tweaks or breadcrumb markup - removing leftover app snippets that slow pages down
All of it lives in theme files. All of it vanishes on an update unless someone moves it across.
Before the update
1. Keep a list of every code edit
This is the step that makes everything else easy. Every time anyone edits theme code, write down the file, the change and why. I keep it in the store’s change log, which I wrote about in change logs for websites: why I write down every fix.
If you’re inheriting a store with no list, you’ll need to build one by comparing the current theme to a clean copy (more on that below).
2. Duplicate the live theme
Always keep an untouched copy of the theme you’re running. It’s your backup and your reference for what the code looked like before.
3. Compare the live theme with a clean original
If you don’t know what’s been edited, add a fresh copy of the same version of the theme from the Theme Store and compare the files. Shopify CLI can pull both themes to your computer, and any diff tool will show the differences. If the store is connected to GitHub, the history is already there.
Every difference is either an SEO edit, an app snippet, a design tweak or something nobody understands. Sort them before you go further.
4. Ask whether each edit still needs to be code
Updates are a good moment to move things out of the code where possible:
- Metafields can hold product details that used to be hard-coded. See Shopify metafields for SEO.
- App blocks and app embeds survive updates far better than pasted app code.
- The new theme version might already do it. Newer versions often fix heading structure or improve schema. Check before you re-apply a fix that’s no longer needed.
Doing the update
- Click update. Shopify adds the new version to your theme library, unpublished.
- Re-apply your code edits to the new copy, one at a time, ticking them off your list. Where the new version has restructured a file, don’t paste blindly; find the equivalent spot.
- Preview the new theme on the pages you care about most: homepage, a collection, a product with variants, a blog post, search results.
Don’t publish yet.
Checking before you publish
This is where the SEO checks go. For each key template, view the page source of the preview and compare it with the live site:
- Title and meta description. Same output as before?
- Canonical tag. Present and pointing at the right URL?
- Robots meta. Is the
noindexstill on the pages that should have it, and not on the ones that shouldn’t? - Headings. One sensible
<h1>per page? - Structured data. Run a product page and an article through Google’s Rich Results Test. Errors you didn’t have before are a red flag.
- Internal links. Navigation, breadcrumbs and footer links present?
- Speed. Run PageSpeed Insights on the preview of a product page. A new version shouldn’t be noticeably heavier.
I also check the theme’s robots and sitemap behaviour hasn’t changed, though those are mostly controlled by Shopify, not the theme. If you’ve customised robots.txt.liquid, make sure the template came across.
After you publish
- Note the date and version in the change log.
- Keep the old theme in the library for a few weeks, in case you need to roll back.
- Inspect a few key URLs in Search Console to confirm Google sees what you expect.
- Watch the Search Console Enhancements reports (Products, Breadcrumbs and so on) over the next couple of weeks for new errors.
How often to update
There’s no prize for being first. I’d rather update a few times a year, carefully, than every time a minor version appears. But don’t fall years behind either. Old versions miss performance improvements, accessibility fixes and support for newer Shopify features, and the bigger the gap, the harder the update.
The one exception is a fix you actually need, like a security issue or a bug affecting checkout or speed. Those are worth doing promptly.
Related reading
- Shopify theme SEO: what to check before you buy
- Change logs for websites: why I write down every fix
- Shopify blog post templates: adding the structure the default theme lacks
- How to audit a Shopify store in an afternoon
Before your next update, open your theme’s code editor and ask: could anyone on the team list what’s been changed in here? If not, that list is the job to do first.