Rankmath automatically Noindexing all Products, Please Help!

#594798
  • Resolved Anonymous
    Rank Math free

    I have tried to reopen the ticket but it shows that the ticket resolved,
    Can you please help?

    When I activate Rankmath, On Google Search Console it shows: No: ‘noindex’ detected in ‘robots’ meta tag
    and also on the website the noindex tag ads automatically, but if I delete Rankmath everything looks good.

    I have provided the login in the sensitive area. can you please tell me?
    I have been managing and installing Rank Math on my customer’s website, and need to give them support.

    Regards

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

    Thanks for contacting us and sorry for the inconvenience caused.

    The issue is coming from the Buy Now Button for WooCommerce plugin. If you disable that plugin then the product pages are set as Index. It seems like the Buy Now Button for WooCommerce plugin is setting the product pages as the cart or checkout pages and that’s why our plugin is setting them as Noindex.

    I have added the following filter to your child theme’s functions.php file to fix the issue:

    add_filter( 'rank_math/frontend/robots', function( $robots ) {
        if( is_cart() || is_checkout() ) {
            $robots['index'] = 'index';
        }
        return $robots;
    });

    Please check and let us know if you need any other assistance.

    Anonymous
    Rank Math free

    Thank you so much for you help. Now i just need to add the codes to other sites as well.

    Thanks again!

    Regards

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

The ticket ‘Rankmath automatically Noindexing all Products, Please Help!’ is closed to new replies.