Tagged: noindex
Google analytics will not index a page on my site because it marked as <meta name=”robots” content=”noindex, follow” />. I have checked the robots text and there is nothing in there that will do this. I ran Site Health plugin which ruled out all plugins as the code didn’t show in source code view. When I switched from WordPress 2023 theme back to Enfold the no index code appeared in the source code view again. The WordPress page has a tick in the index tick box and the rest of the website is being indexed. Is there a feature in Enfold where i may have asked it to not index a certain page?
Hey planbdesign,
Can you try adding this code in functions.php of your child theme:
add_filter('avf_set_follow','avia_set_follow');
function avia_set_follow(){
$meta = '<meta name="robots" content="index, follow" />' . "\n";
return $meta;
}
Let us know if it helps.
Best regards,
Nikko
Thanks, Nikko,
I changed the Meta Tag “robots” section to ‘Let SEO plugin set this tag” and the noindex code disappears from the head code.
Thanks
Kevin
Hi Kevin,
I’m glad to hear that, please let us know if you still need further assistance.
Best regards,
Nikko