All things Shopify and commerce
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Our website https://prohardwood.com has some products that we aren't allowed to show pricing for on our website. We had custom code put in to hide the pricing on our site, but it still shows the pricing on google search. Is there a way to change this? We are using the Dawn theme 15.2.
Hey! @ProHardwood,
Yes, even if pricing is hidden on your website using custom code, Google may still index the original product prices if they are present in the page’s structured data (schema) or in the HTML source. To fix this, you should update the product structured data (JSON-LD) in your Dawn theme to remove or exclude the `price` and `offers` fields for products where pricing shouldn't be shown. Also, make sure the hidden prices are not present in the HTML code, even if they are hidden with CSS or JavaScript. After making these changes, request a reindex of the affected pages in Google Search Console to update the search results.
Hi @ProHardwood
This is a common issue — even though the pricing is hidden on your live site via custom code, Google can still index that data if it exists in your page’s source code or structured data (JSON-LD).
Here are a few steps to help resolve this:
Remove or Modify Pricing in Structured Data
Shopify themes like Dawn include structured data (schema.org) that Google uses to generate rich results. You’ll want to check your product.liquid or main-product.liquid file (or product.json for sectioned themes) for any price-related JSON-LD and remove or conditionally hide it for those specific products.
Use Meta Tags to Control Indexing
If certain product pages shouldn’t show price at all, you can consider adding a <meta name="robots" content="noindex"> tag to those specific pages. Be cautious with this as it will prevent the entire page from being indexed.
Request URL Removal or Reindexing in Google Search Console
After making the changes, you can use Google Search Console to:
Request reindexing of the updated pages.
Use the URL Removal Tool to temporarily hide outdated price info from search.
Double-Check Caching or App Data
Sometimes, Shopify apps or old theme versions may cache product data. Make sure there isn’t an app or leftover code still exposing pricing info.
If you're unsure about editing theme code or structured data, let us know!
Keep in mind that price is a crucial part of product data for Google, structured data would be invalid without it.
Also, Google shopping feed (if you have it) takes data directly from the system, so removing price from HTML/structured data will only result in problems with Google.
I'd say you may as well prevent indexing of those product pages either manually, or by setting metafield https://help.shopify.com/en/manual/promoting-marketing/seo/hide-a-page-from-search-engines ...
@ProHardwood On my side, I prefer the two ways below to remove the pricing from my site on Google. Sharing here for your reference, and see if it works on your store:
1. Carefully check the page content from the source code page with the help of developers and see if there are any elements containing price tags, then find out the related liquid file and remove it.
2. See if my team end inserted price-related Google Structured Data content and remove the value of pricing in the code block, then let Google know my store changes immediately.
Usually, by practising like this, the price will not appear in Google Search anymore. You can have a try on your end. Thank you!