Shopify schema markup
Most Shopify themes already output some structured data. The problems are usually gaps and duplicates, not a total absence. Check one product page first, then fix what is actually missing.
What themes usually include
Recent Shopify themes, including the free Online Store 2.0 themes, generate Product markup on product pages with Liquid's structured_data filter. That covers the product name, images, description, price, currency, availability and variants. Many themes also add Organization or WebSite markup on the homepage, and Article markup on blog posts. Older and third-party themes vary, so check rather than assume.
Common gaps
- No ratings. The theme does not know your reviews. Ratings appear in markup only if your reviews app adds
aggregateRating, and some apps do this only on paid plans or only via JavaScript. - Two Product items for one product. The theme outputs one block and a reviews or SEO app outputs another. Google may pick either. Keep one complete item: either disable the app's markup or remove the theme's and let the app handle it.
- Markup added by JavaScript. Some apps inject JSON-LD after the page loads. Google can usually render it; most AI crawlers do not run JavaScript and will miss it.
- No shipping or return details. Google shows these in shopping results. You can add them to the markup or set them in Google Merchant Center.
- No brand or GTIN. Fill in the Vendor and Barcode fields in Shopify admin; most themes pass them through.
How to check your store
- Open a product page and copy its URL.
- Run it through the validator. Look at how many Product items it finds and which properties are flagged.
- Repeat for the homepage, a collection page and a blog post.
How to fix it
- Missing fields that the theme supports: fill them in the Shopify admin (Vendor, Barcode, SKU, images).
- Duplicates: find which app adds the second block (its settings usually have a "structured data" or "rich snippets" switch).
- Custom markup: edit the theme's section file, for example
sections/main-product.liquid, in a duplicate theme first. Use the Product schema generator as a template and replace values with Liquid variables.
llms.txt on Shopify
Shopify does not allow files in the site root, so /llms.txt needs a URL redirect to a file uploaded under Settings > Files, or an app. Build the content with the llms.txt generator: it reads Shopify's sitemap and groups products, collections, pages and blog posts.