Hi there,
Thank you for contacting Rank Math support.
I’m not sure I understand you properly, but it sounds like you want to change the product description that shows up in the Google rich results tool. This description is based on the Product Schema that Rank Math adds to your product pages.
To change the product description, you need to edit the product – or the post or page where you have added the product. Then, open Rank Math in the Gutenberg sidebar by clicking on the Rank Math SEO icon. In the Schema tab, you can select Product as the Schema type and then edit the Product Description field. This will override the default meta description that Rank Math generates from your product content.
You can also use variables to customize your product description. For example, you can use %excerpt% to insert the product excerpt, or %wc_price% to insert the product price. You can find more variables by clicking on the Insert Variable button next to the Product Description field.
For more details, please refer to this article: https://rankmath.com/kb/product-schema/
I hope this helps. If you have any other questions or issues, please let me know and I’ll be happy to assist you.
Have a great day!
Hi, thank you for you answer.
I understand how to make those configurations and how to modify the meta description.
Maybe I didn’t explain well.
What I want is to keep the “description” snipet with the long description information of the product.
That is, give google the long information for that snipet, and keep the meta description as such.
Here I send you an example. I am using a different cms, there you can choose between a short or long description for the product.
I see that Rank Math places the meta-description automatically. Attached image
Thanks again in advance 😉

Hello,
Thank you for that explanation.
Yes, since the description of the schema fetches your actual meta description, both of them will have the same value as we use the %seo_description%
variable to fetch the meta description:
https://rankmath.com/kb/product-schema/#description
If you’re using WooCommerce and applied the Woocommerce Product schema type, Rank Math automatically retrieves the data from a product page into a working schema structure.
However, to achieve the setup you have mentioned using the long description in the product schema, then you may need to use this filter:
add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
if ( ! is_product() ) {
return $entity;
}
global $post;
$entity['description'] = wp_strip_all_tags( $post->post_content );
return $entity;
} );
Here’s how you can add a filter/hook to your WordPress site:
https://rankmath.com/kb/wordpress-hooks-actions-filters/
Once done, clear your website’s cache and check again the description in the schema.
Hope that helps.
Thank you.
Excellent, that’s how I want it, just one more detail.
Which is taking everything that exists in the description, including the WPBakery code with which I edited the description.
Thanks in advance
Attached image

Hello,
Please try this code instead:
add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
if ( ! is_product() ) {
return $entity;
}
global $post;
$processedContent = wp_strip_all_tags( $post->post_content );
$processedContent = preg_replace("/\[(\/*)?vc_(.*?)\]/", "", $processedContent);
$processedContent = preg_replace("/\[(\/*)?woodmart(.*?)\]/", "", $processedContent);
$entity['description'] = $processedContent;
return $entity;
} );
Let us know how that goes. Looking forward to helping you.
great, thank you all for your help.
Hello again,
We are glad to hear that your issue has been resolved. Thank you for letting us know.
If you don’t mind me 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.
This ticket will be closed now, but you can always open a new one if you have any other questions or concerns. We are here to help you with anything related to Rank Math.
We appreciate your patience and cooperation throughout this process.
Thank you for choosing Rank Math.