Hello,
Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
We have the option “Remove Schema Markup on shop/categories” which will only remove the schema markup from shop/categories page.
If you’re looking to not display that particular product on google search then you might want to set it to no-index.
Please see the screencast below:
https://i.rankmath.com/zxUWoV
I hope that helps.
If this is not what you mean then could you kindly elaborate on what you like to achieve so we could help you further.
Looking forward to helping you. Thank you.
Thank you for your reply.
I need to show both products on Google search, so noindex is not an option.
I want to remove the products’ schema from serp.
Maybe you’ll want to add that option to the plugin, like you have for shop and categories, if you think it can be helpful for someone.
Hello,
When using WooCommerce, Rank Math takes the schema data from your product pages automatically and turns it into Schema-ready content.
If you have added Price for your product variables, then this will be added automatically to your products.
If you don’t wish to have this, you have the following options:
:> Remove the price on your products.
:> Disable product schema on your product pages.
:> Use the following filter to modify the schema and remove the Price property::https://rankmath.com/kb/filters-hooks-api-developer/#change-post-schema-data
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
I found this https://support.rankmath.com/ticket/disable-price-and-stock-rich-snippet/ to remove just price and availability. In case someone needs.
:> Disable product schema on your product pages.
It’s an option, but I will want to keep reviews schema.
Are reviews/ratings also part of your schema? Or is the review schema generated separately by Woocommerce? If they are not part of yours but they are still generated separately by Woocommerce, then I could also consider disabling your whole product schema from product pages.
Hello,
Was the code snippet helpful in resolving the issue?
The review schema added by Rank math in case of WooCommerce products is taken directly from WooCommerce product reviews. The review schema should still be added but only for the products with actual reviews.
Hope this helps you.
Yes, the code snippet resolved my issue, thank you.
Hello,
We are super happy that this issue is already resolved. If you have any other questions in the future, know that we are here to help you.
If you don’t mind us asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.
If you have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.