I\'ve done some research and run up with this code
remove_action(\'wp_head\',\'noindex\',1);
but apparently it\'s not removing the
I will show you how to remove meta name='robots' content='noindex nofollow' in WordPress using replace some code inside the admin panel.
Step 1 - public_html → wp-includes → general-template.php
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 find file and type general-template.php.
Step 2 - Edit Two function
- First Code function Find:
function wp_no_robots() {
if ( get_option( 'blog_public' ) ) {
echo "\n";
return;
}
echo "\n";
}
- First Code replace with bellow
function wp_no_robots() {
if ( get_option( 'blog_public' ) ) {
echo "\n";
return;
}
echo "\n";
}
- Second Code function Find:
function wp_sensitive_page_meta() {
?>
}
- Second Code replaces with bellow:
function wp_sensitive_page_meta() {
?>
}
I hope that helps, For full Details Click this link: