Hide NoIndex Robots meta is enabled

#243748
  • Resolved raha 1988
    Rank Math free

    Hi

    I really want to hide this section and do not show to my authors but the css not worked for me

    https://prnt.sc/1onab8c

    .noindex-preview .serp-preview-noindex, .rank-math-focus-keyword .components-notice {display: none !important;}
    .serp-preview-wrapper {display: none !important;}

    Would you please tell me what should I do?
    Thanks

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

    Thank you for contacting the support, and sorry for any inconvenience that might have been caused due to that.

    That alert will show if noindex is enabled on that certain page. It is advisable to keep it that way so users are aware of the robots configuration of the page which is significant when it comes to managing the SEO of your content.

    But, if you really need to remove that alert, please ensure to apply the CSS only for the admin dashboard. You can use a snippet plugin or inset the code in your functions.php file:

    add_action('admin_head', 'rm_remove_alert1');
    
    function rm_remove_alert1() {
      echo '<style> .noindex-preview .serp-preview-noindex { display: none !important } </style>';
    }

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Hi and thanks for your reply
    There was no inconvenience at all.
    Thanks for helping

    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.

    Yes sure, why not?
    This is it : https://wordpress.org/support/topic/amazing-plugin-with-amazing-tools/#new-post

    Thank you very much

    Hello,

    Thank you for the confirmation, and we appreciate your time for leaving good feedback.

    If you have any other concerns, please don’t hesitate to contact us anytime by creating a new ticket to assist you further with anything else.

    Looking forward to helping you.

    Thank you.

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

The ticket ‘Hide NoIndex Robots meta is enabled’ is closed to new replies.