• Resolved noirebene

    (@noirebene)


    Hi

    Today i have a message from google :

    There is some errors that can prevent your page or feature from appearing in Search results. Following errors was found on your website :
    You must indicate “offers”, “review”, or “aggregateRating”

    How fix this problem related to reviews rating ?

    Many Thanks
    Phil

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author CusRev

    (@ivole)

    Thanks for using our plugin!

    It looks like this problem was caused by a recent update of how Google handles structured data for products (see https://support.google.com/webmasters/thread/17156844?hl=en).

    This structured data is generated by the standard WooCommerce code and they will likely fix the error with one of the next updates. For this reason, it does not make sense to solve a problem in the standard WooCommerce code with our plugin.

    As a temporary solution (until WooCommerce releases a new version), you can try adding the following code to your functions.php file:

    function cr_woocommerce_structured_data_review( $markup, $comment ) {
       $markup = array();
    }
    add_filter( 'woocommerce_structured_data_review', 'cr_woocommerce_structured_data_review', 10, 2 );

    These several lines of code should remove Google’s structured data validation errors. A permanent solution should be provided by WooCommerce with one of the next updates.

Viewing 1 replies (of 1 total)

The topic ‘Google Search Console error’ is closed to new replies.