Category page: “offers” “review” or “aggregate rating” error

#47117
  • Resolved Luca Cafarelli
    Rank Math free

    Hello, I started to use your plugin last week and while I wait answer to this ticket: https://support.rankmath.com/ticket/review-has-multiple-aggregate-rating/ I received today a new error on Google Search Console. Weird thing is that error points to category pages. I tried to fix the problems adding this code to the functions file but didn’t solve:

    /**
    * Remove the generated product schema markup from Product Category and Shop pages.
    */
    function wc_remove_product_schema_product_archive() {
    remove_action( ‘woocommerce_shop_loop’, array( WC()->structured_data, ‘generate_product_data’ ), 10, 0 );
    }
    add_action( ‘woocommerce_init’, ‘wc_remove_product_schema_product_archive’ );

    In the sensitive data space I shared with you link to the GSC page.

    Thanks in advance for the support,

    Luca

Viewing 1 replies (of 1 total)
  • Todd
    Rank Math free

    Hi Luca,

    Thanks for getting in touch with us.

    You can disable Schema on the Product Categories from WordPress Dashboard > Rank Math > Titles & Meta > Product Categories:
    null

    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 ‘Category page: “offers” “review” or “aggregate rating” error’ is closed to new replies.