Product Brand is not recognized as a brand

#1862
  • Resolved Send
    Rank Math free

    Hello,

    we have the problem that the products brand in the rich snippets is not listed/recognized as a brand, but is listed under “additionalProperty”. Google Search Console therefore says that the brand entry is missing.

    We use the taxonomy (product attribute) “pa_marke” for the brands.

    Here in the forum I found this functions.php code, but I don’t know how to customize it to dynamically use the right brand. When I use the code in this way, the brand is always RankMath.

    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
    $entity['brand'] = 'Rank Math';
    return $entity;
    });

    Can anyone help us? Thanks!

    • This topic was modified 5 years ago by Send.
Viewing 15 replies - 1 through 15 (of 19 total)
  • Michael Davis
    Rank Math pro

    Hello,

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

    Can you confirm that the product brand has been added to your WooCommerce products?
    Our plugin automatically picks up these values from the WC pages.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Send
    Rank Math free

    Yes, the brands are added to the products.

    I see that Google lists the data under “additionalProperty” if they are also visible on the page in the “Additional Information” tab. (1)

    For products where this product tab does not exist, but only the brand logo (on top right), Google does not record any data of the brand. (2)

    Michael Davis
    Rank Math pro

    Hello,

    Thank you for the response.

    In this case you can edit the filter mentioned above and replace the text “Rank Math” with brand or company name in the filter.

    I hope this info helps. Thank you.

    ​​​​​​

    Send
    Rank Math free

    But if I just write a brand name there, it will be used for every product.

    To be correct, the brand names need to be loaded from the taxonomy. The right brand for every product.

    Michael Davis
    Rank Math pro

    Hello,

    Thank you for contacting Rank Math today.

    Would you mind sharing some temporary admin access to your site so that I can take a look at your configuration and advise further?
    Please edit the sensitive data section and add the credentials.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Send
    Rank Math free

    I have added a temporary login.

    The brands are stored in the attributes under “Marke”.

    Hello,

    Please try adding below code in your theme’s functions.php file:

    https://pastebin.com/8m5XU9qP?fbclid=IwAR0CxWnmHCbVkTpoPHhqI6WFnz93ThWhLv1vbsmULq1ZQqRYymEkuDvuDFg

    Replace all instances of pa_brand with your product attribute.

    Hope that helps. Thank you.

    Send
    Rank Math free

    Hello,

    thanks, but unfortunately the code doesn’t seem to work.

    I replaced pa_brand with pa_marke, added the code and changed some products (e.g. these in the given two links). Unfortunately nothing has changed. Google still doesn’t recognize a brand. There is also nothing in the code.

    Michael Davis
    Rank Math pro

    Hello,

    Thank you for contacting Rank Math today.

    The access that you shared earlier appears to only redirect to your customer dashboard. Would you mind elevating the access to an admin so that I can view your backend?

    Looking forward to helping you. Thank you.

    ​​​​​​

    Michael Davis
    Rank Math pro

    Hello,

    Thank you for your reply.

    I do not have access to your theme files with the access granted, please share some FTP credentials on the sensitive data section instead so that I can help further.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Send
    Rank Math free

    I have updated RankMath and added an FTP login.

    Hello,

    The Product brand placeholder is working properly on your site. Please see the screencast I added in the Sensitive Data Section.

    Thank you.

    Send
    Rank Math free

    Hello Pratik,

    thanks, but it was about something else. See my first post with screenshot.

    It’s about the fact that Google & Co. doesn’t recognize the brand we’ve registered for the products as a brand.

    If you check a product with https://search.google.com/structured-data/testing-tool/, you will see that an error is displayed under “brand”. Instead, our brand (if displayed at all) will be registered under “additionalProperty”.

    The point is to add the value of pa_marke correctly to brand.

    Hello,

    To change brand vlaue in Schema, please use below filter code:

    
    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
        $entity['brand'] = 'Rank Math';
        return $entity;
    });
    

    Replace Rank Math with pa_marke value. You can use the same code which you added in your functions file to get the product attribute value.

    Hope that helps. Thank you.

    Hello,

    To change brand vlaue in Schema, please use below filter code:

    
    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
        $entity['brand'] = 'Rank Math';
        return $entity;
    });
    

    Replace Rank Math with pa_marke value. You can use the same code which you added in your functions file to get the product attribute value.

    Hope that helps. Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 15 replies - 1 through 15 (of 19 total)

The ticket ‘Product Brand is not recognized as a brand’ is closed to new replies.