Having trouble getting your WordPress website crawled or indexed in search? You recently install WordPress setup manually into your online hosting service. When you log in to Google Search Console and request indexing are you being met with all sorts of error messages about noindex / nofollow meta tags.

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, if you are technical know-how to modify codes or script that make you very easy, otherwise no problem in this blog post I make very easier only you can follow this bellow mention with reference images, that helps you to resolve them.
Step 1 – Log into your cPanel
Now the first step you can work with the files in your cPanle account prefer a web-based alternative, there is a File Manager built into cPanel.
To access the File Manager, log in to your hosting cPanel and go to cPanel by clicking the “cPanel Login” button.

We will show you how to remove meta name=’robots’ content=’noindex nofollow’ in WordPress using replace some code inside the admin panel Step 1 Log into your cPanel
Step 2 – cPanel File Manager
When you log in to the File Manager, you will be in the root directory for your account. Most of the time you’ll be working with website files, and they are located in the “public_html” directory.

Step 3 – Find file Name as wp-includes
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.
Now you find file name general-template.php, and download this file to your system, check the below image for reference.

Step 4 – Edit general-template.php File
You can find these two different function, how to find function, so file open with a text editor to your desktop computer, now find (Ctrl+f) this line bellow mention:
1 – Find this first code and replace with just bellow this:
function wp_no_robots() {
if ( get_option( 'blog_public' ) ) {
echo "<meta name='robots' content='noindex,follow' />\n";
return;
}
echo "<meta name='robots' content='noindex,nofollow' />\n";
}

1.1 – Replace first with this code:
function wp_no_robots() {
if ( get_option( 'blog_public' ) ) {
echo "<meta name='robots' content='index,follow' />\n";
return;
}
echo "<meta name='robots' content='index,follow' />\n";
}
2 – Find this second code:
function wp_sensitive_page_meta() {
?>
<meta name='robots' content='noindex,noarchive' />
<meta name='referrer' content='strict-origin-when-cross-origin' />
<?php
}
2.2 – Replace Second with this code:
function wp_sensitive_page_meta() {
?>
<meta name='robots' content='index,archive' />
<meta name='referrer' content='strict-origin-when-cross-origin' />
<?php
}

Well, you replace this code to our reference code, that make your website give SEO boost, Google suggests to focus and web page indexing.
Step 5 – Uploading general-template.php File in File Manager
Click Upload from the top toolbar. This brings a new tab open screen, then click on the select button, it appears for you to locate the file on your local computer. Once you find the desired file, click on the Open button to begin the upload.

Once that is complete, go back to the website check, change into Search Console, resubmit the URL you tried earlier. If you are replacing all codes properly, everything should be singing a different tune. Now when you submit a URL, 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 hope that helps, Google suggests to focus and web page index on search engine Googlebot through your site. This means your website should have intuitive navigation and clear URLs.
Note: WordPress Dashboard upgrade or update; this code can replace into noindex, nofollow (as par wordpress.org provide dashboard codes); at the time you will follow the same, replace code.