• Resolved doni3232

    (@doni3232)


    Hello,
    when I activate the Yoast Seo plugin, I have this meta tag in the source code of my site.
    meta name=robots content=noindex, nofollow
    If I deactivate Yoast Seo, is the meta tag gone again!
    But I would like to use Yoast SEO.
    How can I remove this meta tag?

Viewing 1 replies (of 1 total)
  • Thread Starter doni3232

    (@doni3232)

    Found the solution:

    In functions.php add:

    function ikva_remove_robots_meta() {
    	return null;
    }
    add_filter('wpseo_robots', 'ikva_remove_robots_meta');
    remove_filter('wp_robots', 'wp_robots_max_image_preview_large');


    In the header.php add:

    <meta name="robots" content="index, follow" />
Viewing 1 replies (of 1 total)
  • The topic ‘Meta robots with noindex in the source code?’ is closed to new replies.