About brand schema problem

  • Hello,
    I got brand schema missing error information from rich results test tool. After that i choosed tags as a brand from wp-admin-rank math-woocommerce-last option

    When i check my code source of page, i can see <meta property=”product:brand” content=”blabla”> However, im still having missing error from google rich result test tool.

    Could you help me how to fix this situation ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    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.

    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;
    });
Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this ticket.