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:

  1. Go to Shopify Admin → Online Store → Themes

  2. Click the three dots (...) next to your active theme

  3. Select "Duplicate"


Step 1: Access Your Theme Code

  1. Go to Shopify Admin → Online Store → Themes

  2. Click the three dots (...) next to your active theme

  3. Click "Edit code"


Step 2: Find the Product Schema

The duplicate Product schema is usually located in one of these files:

  • sections/main-product.liquid

  • sections/product-template.liquid

  • snippets/product-schema.liquid

  • layout/theme.liquid (less common)

How to search:

  1. Use Ctrl+F (Windows) or Cmd+F (Mac) in the code editor

  2. Search for: "@type": "Product"

  3. 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:

  1. Select the entire block from <script type="application/ld+json"> to </script>

  2. Delete it

  3. 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

  1. Visit one of your product pages

  2. Right-click → View Page Source

  3. Search for "@type": "Product" - you should now only see one Product schema (from StoreRank.ai with the #storerank-product identifier)

  4. Test your page using Google's Rich Results Test


Alternative Solution

Not comfortable editing code?

Instead of removing your theme's schema, you can:

  1. Go to StoreRank.ai → Schema Settings

  2. Turn OFF the "Product Schema" toggle

  3. 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.