Warning with Brand on Google Rich Results Test

#285292
  • Resolved Alex
    Rank Math free

    Hello,

    Before submit post here, I already read these two post, but still I can not fix the issue:
    https://rankmath.com/kb/woocommerce-custom-brand-schema/
    https://rankmath.com/kb/either-offers-review-or-aggregaterating-should-be-specified/

    I am using this short code by Rankmath support to enable map attributes:

    
    

    add_filter( ‘rank_math/snippet/rich_snippet_product_entity’, function( $entity ) {
    global $product;
    if ( ! is_a( $product, ‘WC_Product’ ) ) {
    return $entity;
    }
    {
    $entity[‘offers’][ ‘priceValidUntil’ ] = date( ‘Y-12-31’ );
    }
    $entity[‘mpn’] = “{$product->get_sku()}”;
    return $entity;
    } );

    /**
    * Filter to add Brand Name for Products.
    *
    * @param array $entity Snippet Data
    * @return array
    */
    add_filter( ‘rank_math/snippet/rich_snippet_product_entity’, function( $entity ) {
    $entity[‘brand’] = ‘Lovcour’;
    return $entity;
    });

    When testing on Google structured data test tool, it show warnings, and please check the screenshots:
    https://prnt.sc/1ya0br7

    After click the “product”, it will show as this screenshot:
    https://prnt.sc/1ya0cub

    But there is “brand”:”Lovcour” in html codes.

    Would you please let me know how to remove the warning?

    Also, you might like check test this product page.

    Thanks and have a nice day.

    Alex

Viewing 1 replies (of 1 total)
  • Azib Yaqoob
    Rank Math business

    Hello,

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

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping 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 1 replies (of 1 total)

The ticket ‘Warning with Brand on Google Rich Results Test’ is closed to new replies.