support@schemaclinic.com Free JSON-LD checker Free schema generator Shopify App Store
Fix schema errors/guides/fix/schema-after-changing-shopify-theme

What happens to my schema when I change theme?

A new Shopify theme changes more than the look of your store. The schema markup on every page can change with it, and some of it quietly disappears. Here is what moves across, what does not, and how to check before and after you publish.

Short answer: when you publish a new theme, the schema your old theme output goes with it, and the new theme's own schema takes over. Any schema edits you made in the old theme's code, and snippets that older apps pasted into it, do not carry across. App embeds are set per theme, so schema apps that use one, including Schema Clinic, must be switched on again in the new theme. Your product data and URLs stay the same. Audit the new theme before you publish it, and again after.

What changes, and what stays

Schema sourceAfter publishing a new theme
Old theme's built-in schemaGone. Replaced by whatever the new theme outputs, which may be more, less or different
Your edits to the old theme's codeGone. They lived in the old theme's files
Snippets older apps pasted into the themeGone from the live store. This can remove stale or duplicate blocks, but also markup you relied on
App embeds (theme app extensions)Off until you switch them on in the new theme's App embeds settings
Product data, metafields and URLsUnchanged. They belong to the store, not the theme
Search Console settings, such as return and shipping policiesUnchanged

Product, collection and page URLs are set by Shopify, not by the theme, so a theme change does not move pages. What Google sees on those pages changes once it recrawls them.

App embeds need switching on again

This catches people out most often. App embed settings are saved per theme: you switch an embed on in the theme editor of one specific theme, and that setting does not follow you to another. So a schema app, review app or SEO app that adds markup through an app embed will not output anything on the new theme until you open Online Store › Themes › Customize › App embeds on that theme and switch it on.

Review apps matter here too. If your star ratings reached your Product markup through a review app's embed or metafields that the old theme read, check the new theme does the same. Our guide to theme app extensions and schema explains how app embeds work.

Schema Clinic users: switch on the "Schema Clinic" app embed in the new theme. Deploying through it needs an Online Store 2.0 theme. Then check for duplicates: if the new theme outputs its own Product or Organization, decide which source owns each type.

Shopify theme editor App embeds panel with toggles for Schema Clinic, Clarity Agents JS, Clarity JS and SmartTrade Pricing
App embeds in the theme editor. After switching themes, check each schema app has its toggle on in the new theme.

Check the new theme before you publish it

You can check a theme's schema while it is still unpublished:

  1. Install the new theme without publishing it, and switch on the app embeds you use in its theme editor.
  2. Preview a product page, a collection page, the home page and a blog post.
  3. View the page source of each preview and search for application/ld+json and itemprop. Copy each JSON-LD block into the code option of Google's Rich Results Test or our free JSON-LD checker.
  4. Compare with the live theme: is anything missing (BreadcrumbList, brand, GTIN, ratings), duplicated or newly broken?

Page source does not include schema that apps add with JavaScript after the page loads, so recheck the live pages once the theme is published.

After you publish: a checklist

  • Run the live home page, a product, a collection and a blog post through the Rich Results Test. Count the items of each type; you want one Product per product page and one Organization.
  • Confirm app embeds are on and their markup appears.
  • Remove any duplicate. If the new theme and an app both output Product, switch one off. See duplicate Product schema.
  • Watch Search Console's Product snippets, Merchant listings and Breadcrumbs reports over the following weeks. Changes appear as Google recrawls each page, not all at once.
  • If you edit the new theme's schema code, keep a note. A future theme update will replace those files too.

Schema Clinic audits the live store, so running an audit before and after the switch shows exactly what changed: its history keeps every audit, with the score and the issue list, and each block is shown with its source. Starter is $9.99/month; Pro ($19.99/month) adds the generator and deploy. There is no free plan or trial. For theme schema that was incomplete to begin with, see Shopify theme schema broken?

Questions people ask

Will I lose my schema if I change Shopify theme?
You lose the old theme's own schema and any edits you made to its code. The new theme's schema replaces it. App embeds need switching on in the new theme. Product data and URLs are unaffected.
Do schema apps keep working after a theme change?
Apps that use an app embed keep working once you switch the embed on in the new theme. Apps that pasted code into the old theme's files need reinstalling or re-adding to the new theme.
Will changing theme hurt my rich results?
It can if the new theme outputs less complete schema or creates duplicates. Check the new theme before publishing and fix any gaps; Google picks up the changes as it recrawls each page.
Does updating my theme to a new version affect schema?
Yes, in the same way. An update replaces the theme's files, so any schema edits you made to them are lost and the new version's schema may differ. Re-test after every theme update.
Can I test a theme's schema before publishing it?
Yes. Preview the unpublished theme, view the source and paste the JSON-LD into the Rich Results Test's code option or a JSON-LD checker. Schema added by JavaScript only shows once the theme is live.

See what Google sees on your store

Run an audit in minutes. Every schema block, every error and duplicate, with its source.

Install Schema Clinic