Hello, I’m sorry to hear about the issue you’re facing with displaying WooCommerce product prices in search engine results.
To hide specific data like product prices from appearing in the SERPs, you can utilize Rank Math’s Schema Markup customization feature. By customizing the Schema Markup for your WooCommerce products, you can control the information displayed to search engines.
Here’s how you can achieve this:
-
Edit Your WooCommerce Product:
- Navigate to the product you want to customize.
- Click on Edit to access the product details.
-
Navigate to the Schema Settings for This Product:
- In the product edit page, go to the Schema tab and click on Schema Generator.
-
Open Rank Math’s Schema Builder:
- Once in the Schema Generator, you’ll see Rank Math’s Schema Builder interface.
-
Choose the Schema for Your Product:
- Select the appropriate Schema type for your product based on the information you want to display.
- Save the changes for this post.
By customizing the Schema Markup using Rank Math, you can control what information is visible to search engines, including hiding product prices from appearing in the SERPs.
If you need further assistance or have any questions while customizing the Schema Markup, feel free to reach out to our support team. We are here to help you with any queries you may have.
Thank you for raising this concern, and we appreciate your understanding as we work to resolve this issue for you.
Sources:
Resolving Rank Math Schema Markup Related Issues
Rank Math General Settings
Remove All Schema from Product Category Pages » Rank Math
Google Search Console Missing Field Warning » Rank Math
How to Customize Schema Markup for WooCommerce Products » Rank Math
Hello,
Thank you so much for getting in touch.
I understand you want to hide meta data relating to prices in SERPs. To do this, you’ll have to use the following filter to remove the Offers property from the Product Schema:
add_filter( "rank_math/snippet/rich_snippet_product_entity", function( $entity ) {
unset($entity['Offers']);
return $entity;
});
Here is how to add a filter to your site: https://rankmath.com/kb/wordpress-hooks-actions-filters/
Please note that the Offers property is a required property. Google will not validate the Schema and show errors unless your products have reviews. If your products don’t have reviews, it isn’t recommended to remove the offers property or you can proceed with removing the product schema completely.
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.