category chema error

#339365
  • Resolved Alireza Naji
    Rank Math free

    Hello. Thanks for Rank Math, this is a great plugin.

    I had asked a question before but I forgot answer. please guide me.

    1. When the product is noindex, the category of those products shows an error (invalid item detected). It was a function code that disabled category schema markup. i need function code to disable Schema for product categories.

    https://s6.uupload.ir/files/screenshot_692.png

    2. Is there a way to prevent WooCommerce information from becoming known as Schema? Sometimes two schemas are identified. One for product schema and one for WooCommerce product details.

    3. In the title and meta settings, sometimes there are many types of product features that can be noindex or elese, but I know there is a function code for it.

    number 1 is very important to me.

    Thank you for your great support

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

    Thanks for contacting us and sorry for any inconvenience that might have been caused due to that.

    1. Please navigate to WP Dashboard > Rank Math > Titles & Meta > Product Categories and enable the Remove Snippet Data option to fix the issue.

    2. Can you please share the affected URL so we can check and assist you further?

    3. Sorry but I am not able to understand your query. Can you please share some more details about the issue?

    Looking forward to helping you.

    Thank you for your support. But “Remove Snippet Data option” does not work. Please send me the function code. to disables the schema for categories.

    This link does not have a product schema, but Google rich resualt identifies a product schema from woocommrce details:

    (my pages is noindex)
    link: https://search.google.com/test/rich-results/result?id=K8yiSIcuucw3_TqRGWpXRQ

    and category with all products-noindexed but error still there
    https://search.google.com/test/rich-results/result?id=8-Gpxwm53UkiHmkbqJmMuA

    error: X items detected: Some are invalid
    for “X items detected: Some are invalid” you have function code. Thanks for if sending it to me.

    thank you for your time and effort

    Hello,

    The product Schema is coming from the products added to that category page. You don’t need to add any code to remove it, please enable the Remove Snippet Data option and the issue will be fixed.

    Hope this helps. Let us know if you need any other assistance.

    Thanks.

    mr Jaideep Asrani. as i say before, Remove Snippet Data option not work on my site. i have a function code a year ago but i have’nt it now. my category rich error and you see the result. all of my product is noindex and there is no product schema on my pages and category. if you can help me. thanks a lot

    Hello,

    Please try using the filter given below to remove the affected Schema from your product categories:

    add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
        if( is_product_category() ) {
            unset($data['ProductsPage']);
        }
        return $data;
    }, 99, 2);
    

    Hope this helps. Please don’t hesitate to get in touch in case you need any other assistance.

    Thanks.

    thanks Jaideep, rank math is Miracle

    Hello,

    Glad that helped.

    Please feel free to reach out to us again in case you need any other assistance.

    We are here to help.

    Thank you.

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

The ticket ‘category chema error’ is closed to new replies.