About brand schema problem

#105031
  • Resolved YAKYO
    Rank Math free

    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 5 replies - 1 through 5 (of 5 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.

    YAKYO
    Rank Math free

    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 ?

    Senada
    Rank Math free

    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;
    });
    YAKYO
    Rank Math free

    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.

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

The ticket ‘About brand schema problem’ is closed to new replies.