New Problem with Review Schema

#17445
  • Resolved Ryan
    Rank Math pro

    So this morning I have woken up to emails from search console flagging up issues with the review schema on pages with it enabled

    Either “offers”, “review”, or “aggregateRating” should be specified

    Searching it looks related to woocommerce but I am not using it.

    Please can you advice on a fix for this issue now?

    • This topic was modified 4 years, 6 months ago by Ryan.
Viewing 12 replies - 1 through 12 (of 12 total)
  • Hello,

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    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.

    Ryan
    Rank Math pro

    I do not want to provide login details thank you.

    Please ask me what you would like to know and I will tell you

    Ryan
    Rank Math pro

    Please reply to support ticket!

    Ryan
    Rank Math pro

    Can I have a reply please to my support ticket

    Hello,

    Thank you for contacting Rank Math today and sorry for the huge delay.

    Would you mind sharing a link to one of the affected posts/page so that we can help in coming up with a custom snippet to fix the errors?
    Please note that if you do not have WooCommerce installed and want to remove all the product schema, you can also add the following code to your theme’s functions.php file:

    /**
     * Filter to Short-circuit Schema if a 3rd party is interested in generating their own data.
     * Replace $schmea_type with schema name like article, review, etc.
     * @param bool  $value true/false Default false
     * @param array $parts Post Data
     * @param array $data  Schmea Data
     * 
     * @return bool
     */
    add_filter( "rank_math/snippet/rich_snippet_product", function( $value, $parts, $data ) {
    	return true;
    }, 10, 3 );

    Looking forward to helping you. Thank you.

    ​​​​​​

    Ryan
    Rank Math pro

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hi Ryan,

    Thanks for the response.

    The errors reported on the structured data testing tool actually relate to the reviews schema and not WooCommerce product schema. These errors are as a result of the changes introduced by Google and is one of the issues that is on our to do list for the upcoming update.
    At the moment, I can recommend that you disable the reviews schema for the page to as a temporary remedy for these errors.

    We regret the inconvenience caused. Thank you.

    Ryan
    Rank Math pro

    Ok next question, as I do not want to remove the schema.

    How do I remove the font awesome stars that are displayed but keep the schema?

    Hi Ryan,

    Thanks for the response.

    The rating stars are not causing this but the absence of offers, review or aggregateRating “One of offers or review or aggregateRating should be provided.”
    You can use this filter to come up with custom review schema data containing these properties:

    /**
     * Collect data to output in JSON-LD.
     *
     * @param array  $unsigned An array of data to output in json-ld.
     * @param JsonLD $unsigned JsonLD instance.
     */
    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
    	return [];
    }, 10, 2);

    I hope this helps.

    Ryan
    Rank Math pro

    Hi

    Yes I know this, but the loading of font awesome from rank math plugin is slowing down my site so I would like to remove this if possible.

    The only reason I can see rank math using font awesome on the page is for the review stars which I would like to remove from the page.

    Hello,

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

    I have raised this request with our dev team and we will be getting back to you in a short while.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Todd
    Rank Math free

    Hi Ryan,

    We do not recommend hiding the reviews from the users and only showing the schema to Google. This might have some negative results on your rankings since Google doesn’t like it when you show it something and show the real visitors something else.

    If you still wish to proceed, choose the shortcode option here and don’t use the shortcode in the post:
    shortcode review

    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 12 replies - 1 through 12 (of 12 total)

The ticket ‘New Problem with Review Schema’ is closed to new replies.