Answer the question
In order to leave comments, you need to log in
Why does the page have a noindex tag?
Hello!
Google began to give an error: "The page associated with the submitted URL contains the noindex tag." I didn’t pay much attention to this, because I haven’t figured out this console yet. I am filling the site, I have a new one. But yesterday I decided to figure it out all the same, what kind of error is this. And it turns out I have this line in the code:
But I just don’t get into the code, everything is fine in the robot, yoast seo is installed, but everything is ok there. How could the noindex tag get on the page? It is not yet completely filled, only the title, maybe for this reason ...
Answer the question
In order to leave comments, you need to log in
On the page, in the seo settings, check the corresponding checkboxes. Plus, in the settings of yoast itself, take a look, maybe the noindex tag is set on some pages.
Also, in the WordPress settings, check if the checkbox for the request not to index the site is checked.
Try adding to the functions.php file.
add_filter( 'wpseo_robots', 'joe_remove_yoast_meta' );
function joe_remove_yoast_meta( $filter ){
if( is_archive() ){
return false;
}
return $filter;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question