Structured data is extremely valuable to have available on your site, especially for products. There are however valid cases where you may want to remove this structured data fully or partially.
In this post I’ll show how you can remove all structured data at once, but also how you can remove portions of the data such as only removing the stock or price information.
What is Structured Data?
Structured data ensures search engines like Google and Bing are able to show additional data in their Search Engine Results Page (SERP) such as the product price, stock and product review information.
Having this additional data available in your SERP listing can do wonders for your Click Through Rate (CTR) and conversions. Especially if you’re offering competitive pricing and/or exceptionally good reviewed products.
Compare the following structured listing with the same listing without any structured data.
Structured Data in WooCommerce
WooCommerce offers all of the shown strucutured data above and more by default. Here’s a full list of all the structured data;
- Product (includes pricing, stock and aggregated ratings)
- Review (individual review markup)
Removing Structured Data
To remove structured data you can use and implement some code snippets listed below.
Removing All Product Structured Data
The following snippet removes all the structure data for the products.
Removing Price Structured Data
Removing Stock Structured Data
Removing Review Structured Data
Review structured data is only added when a product has at least 1 review and when the current setting in your store is set to allow/enable review ratings. That is one way to disable the structured data, but if you still want to remove it through a code snippet, the following can be used.