How to remove noindex by RnakMath

#468561
  • How to remove noindex by RnakMath

    I am using Rnakmath, but unintentionally set a noindex, I am using a plugin called CartFlows, but RankMath is overwriting this index.
    Of course, I have not specified in the global settings to set the noindex, and I have tried to submit the site to Google Search Console, but I am having trouble with it being rejected.
    Please indicate exactly how to remove the noindex set by RnakMath. Please be specific about the method and procedure.

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

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    In this case, you can use and customize this filter to set the robots meta tag to index:

    add_filter( 'rank_math/frontend/robots', function( $robots ) {
    if ( ! is_singular( 'cartflows_step' ) ) {
    return $robots;
    }
    $robots['index'] = 'index';
    return $robots;
    }, 9999 );

    And here’s a link on how to apply a filter on your site:
    https://rankmath.com/kb/filters-hooks-api-developer/#how-to-add-code-snippets-to-rank-math-php

    Once you have implemented the code snippet above, clear your website’s cache and check again.

    Hope that helps.

    Thank you.

    Thank you very much.
    It seems to have been indexed for now. I will take a look at it first.

    Hello,

    Sure, let us know how this goes.

    Meanwhile, please don’t hesitate to contact us anytime if you have other questions to assist you further.

    Looking forward to helping you.

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

The ticket ‘How to remove noindex by RnakMath’ is closed to new replies.