Product Schema showing more errors than before

Viewing 4 replies - 1 through 4 (of 4 total)
  • Errors and warnings

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    The SDTT does not support the isSimilarTo attribute on the product schema and this is what is causing the errors and warnings.

    You can however test this on the new rich snippet test tool here https://search.google.com/test/rich-results?id=gCu_tf3UIjIqNs5MabMqvw and you will notice that the errors are gone.

    This should not cause any worry since the page is eligible for rich snippets.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Is there a way to add schema for “brand” ?

    Hello,

    Thank you for contacting us today.

    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.

    Brand Value

    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.

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this ticket.