Answers
Will a Shopify theme update undo my AI agent fixes?Usually not, but check each time. Shopify adds the update as a draft copy and leaves your live theme alone. Theme editor customizations come across, and so do code edits that don't conflict with the new version. When code edits can't be included, Shopify says so on the theme card, and you copy them over yourself.
- 1.Before you update, save a copy of any code you changed: agents.md.liquid, robots.txt.liquid, and the sections or snippets that print your product structured data and fact blocks.
- 2.Update from the Themes page. The new version lands in your draft themes as "Updated copy of" your theme.
- 3.Read the theme card. It says whether your code edits were included or could not be included.
- 4.If they weren't, copy your changes into the new version before you publish it.
- 5.After you publish, add /agents.md and /robots.txt to your store's address and check both, then test a product page in Google's Rich Results Test.
Shopify counts files in the Templates folder as theme editor customizations, which it copies over. Code in sections, snippets and layout files is included only when it doesn't conflict with the new version.
Shopify's automated theme updates are for bug and security fixes, and Shopify says they don't change your content or settings.
Switching to a different theme is not an update. A different theme is a different set of files, so fixes made in your old theme's code don't come with it.
Apps can undo fixes too. An app you install later can add its own product markup next to yours, so check a product page after any app change.
- Shopify: updating themes
- Why does my product page have duplicate structured data?
- Run the free scan
- All answers
Free: scan your store and get a first draft of your agents.md.