How to remove existing Product Schema from your theme
Written By Tom van den Heuvel
Last updated 4 months ago
If you're seeing duplicate Product schema warnings in Google Search Console, it's likely because your Shopify theme already has Product schema markup installed. To use StoreRank.ai's more comprehensive schema instead, you'll need to remove the existing one from your theme.
Before You Start
⚠️ Important: Always create a backup of your theme before editing code.
To create a backup:
Go to Shopify Admin → Online Store → Themes
Click the three dots (...) next to your active theme
Select "Duplicate"
Step 1: Access Your Theme Code
Go to Shopify Admin → Online Store → Themes
Click the three dots (...) next to your active theme
Click "Edit code"
Step 2: Find the Product Schema
The duplicate Product schema is usually located in one of these files:
sections/main-product.liquidsections/product-template.liquidsnippets/product-schema.liquidlayout/theme.liquid(less common)
How to search:
Use Ctrl+F (Windows) or Cmd+F (Mac) in the code editor
Search for:
"@type": "Product"Look for a code block like this:
liquid
<script type="application/ld+json"> { "@context": "http://schema.org/", "@type": "Product", "name": "{{ product.title }}", "description": "{{ product.description }}", "brand": { "@type": "Thing", "name": "{{ product.vendor }}" }, "offers": [...] } </script>Step 3: Remove the Schema
Once you've found the Product schema:
Select the entire block from
<script type="application/ld+json">to</script>Delete it
Click Save in the top right corner
⚠️ Be careful: Only delete the Product schema block. Don't remove other schemas like Organization, WebSite, or BreadcrumbList.
Step 4: Verify the Changes
Visit one of your product pages
Right-click → View Page Source
Search for
"@type": "Product"- you should now only see one Product schema (from StoreRank.ai with the#storerank-productidentifier)Test your page using Google's Rich Results Test
Alternative Solution
Not comfortable editing code?
Instead of removing your theme's schema, you can:
Go to StoreRank.ai → Schema Settings
Turn OFF the "Product Schema" toggle
Save your settings
This keeps your theme's existing schema and removes StoreRank.ai's duplicate. While your theme's schema is functional, StoreRank.ai's version includes additional optimizations for AI search engines.
Need Help?
Option 1: Contact the developer who originally added the schema to your theme
Option 2: Hire a Shopify expert from the Shopify Experts marketplace
Option 3: Contact StoreRank.ai support for guidance
💡 Note: Google Search Console warnings may take 24-48 hours to clear after removing duplicate schemas.