How to disable robots meta tag?
-
I am trying to prevent Yoast from outputting <meta name=’robots’ into my pages because I’d like to handle this on my own.
I tried
add_filter('wpseo_robots', '__return_false');
which produces this:<meta name='robots' content='noindex, nofollow' />
I also tried
function remove_yoast_robots_meta($old_string) {return '';} add_filter('wpseo_robots', 'remove_yoast_robots_meta');
Which for some reason produces:
<meta name='robots' content='max-image-preview:large' />
Neither of this is what I want. I want instead to not have a <meta robots at all (on existing and future pages). Could someone help?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to disable robots meta tag?’ is closed to new replies.