Hello,
Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
Are you using WooCommerce Product Schema? If so, to fix the brand
warning, head over to WordPress Dashboard > Rank Math > General Settings > WooCommerce
and choose from any of the available fields to use as your product’s brands.
If you want to use a custom value for your Brands, you can do that by using the following code in your theme’s functions.php file:
// Add Brand for Products.
add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
$entity['brand'] = 'Rank Math;
return $entity;
});
Replace the “Rank Math” text with your actual brand name then run your website through the Structured Data Testing tool once again.
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
Hello Michael,
Thank you for your help. I can see two solution ways from you. First one
WordPress Dashboard > Rank Math > General Settings > WooCommerce
i already did this. i choosed tags and as i say before its showing in source code but doesnt show in schema.
For second solution way, i have code snippets plugin(its adding theme functions) and when i add your functions php code to there. its giving this error to all website.
There has been a critical error on your website. Please check your site admin email inbox for instructions.
Both solutions are not worked for me , What can we do more ?
Surprised support still shares this code with the missing apostrophe. Use the following code:
// Add Brand for Products.
add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
$entity['brand'] = 'Rank Math';
return $entity;
});
Thank you so much ! You helped to me totally !
Hello,
Glad that helped.
Please feel free to reach out to us again in case you need any other assistance.
We are here to help.
Thank you.