Product – Schema Markup

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hello,

    The rich snippets product schema in the Knowlodge base screenshot you have shared only relates to posts.
    For products pages, rank Math takes the schema data from your product pages automatically and turns it into Schema-ready content. The aggregateRating and review fields are taken from your actual product reviews that your buyers/customers leave on your products.

    If you don’t have any reviews yet, that is going to show up as a warning in the schema testing tool. That’s because Google will actually look for those fields.

    Please acquire some reviews and ratings to get rid of the aggregateRating and review warnings.

    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.

    For the GTIN, ISBN, MPN issue, you can fix it by adding that to your products using the custom product attribute feature in WooCommere or you can use this plugin: https://wordpress.org/plugins/product-gtin-ean-upc-isbn-for-woocommerce/

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Thanks for your reply. Reviewing this and will get back to you.

    Hi,

    I wanted to add that since you are using the product Schema on posts and not the WooCommerce products, much of what my colleague said might not apply to you.

    To fix the brand issue, for example, you have to enter the value for Product Brand in the backend like this:

    The aggregateRating warnings cannot be fixed until you use a 3rd party user ratings plugins since Rank Math only allows author ratings.

    With that said, these are just warnings and do not affect your Rich Snippets. You only need to worry about errors in the SDTT which I don’t see you are getting.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Hey Guys — Thanks for all your help.

    Unfortunately, the screenshots you’re providing is not matching up with my product page backend – https://nimb.ws/PgvtAk

    I don’t see any of these fields.

    How do I setup my plugin to appear on the right hand side? Some of my other sites, RankMath appears to the right next to the gear icon. For some reason, Naia CBD has the schema tab below the text.

    Hello,

    They are not matching because you are using WooCommerce. In that case, our plugin automatically detects it is a product and you don’t need to fulfill the product markup since it is done automatically by the plugin.

    In that case, the answer done by my colleague Michael should help you to fix your issues.

    Looking forward to help you.

    Thanks Alberto.. Our developer will look into this.

    Hello,

    Do so and let us know how it goes. Don’t forget to mark this as resolved if it is.

    If you have any further question(s), please let us know. Thank you.

    Thanks.. I’ll let you know.

    Hello,

    Sounds good.

    We are only a ticket away.

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

The ticket ‘Product – Schema Markup’ is closed to new replies.