were experiencing a strange issue with a wordpress sites meta robots tag. All pages have the following meta tag and we cant seem to remove it
How to Remove WordPress Robots Meta Tag noindex, nofollow
We will show you how to remove meta name=’robots’ content=’noindex nofollow’ in WordPress using replace some code inside the admin panel, no plugin request.
Step 1 – Log into your cPanel
Well, you log inside the public_html directory, now you find a folder, name wp-includes, double click to open this folder. At the same time, there are so many folders and files, take a breath, and simply click to your keyboard Ctrl+f and type general-template.php.
Step 2 – Edit general-template.php File
Find this code inside general-template.php
function wp_no_robots() {
if ( get_option( 'blog_public' ) ) {
echo "\n";
return;
}
echo "\n";
}
Replace first with this code:
function wp_no_robots() {
if ( get_option( 'blog_public' ) ) {
echo "\n";
return;
}
echo "\n";
}
2 – Find this second code same file general-template.php:
This
function wp_sensitive_page_meta() {
?>
}
Replace to
function wp_sensitive_page_meta() {
?>
}
Once that is complete, go back to the website check, change into Search Console, resubmit the URL you tried earlier. The URL inspection report should be void of all warnings and error messages, at least ones related to indexing and crawl ability, and you’ll be able to “Request Indexing,”.
I found a solution that worked 100% Read Full Details here