Woocommerce Product Rich Snippets

#13307
  • Resolved John Greenhalgh
    Rank Math free

    hi.
    How do I add in missing information from the schema?

    Both brand and GTIN/SKU is not being inserted.

    brand – The brand field is recommended. Please provide a value if available.
    This product is missing a global identifier (e.g. isbn, mpn or gtin8). Please see documentation for valid identifiers.

Viewing 1 replies (of 1 total)
  • Hello,

    Rank Math takes the schema data from your product pages automatically and turns it into Schema-ready content.

    You can fix the SKU and availability issue easily as well:

    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,

    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 ‘Woocommerce Product Rich Snippets’ is closed to new replies.