Meta Tags Robots
-
Hello! WordPress 5.7 now has a meta tag:
<meta name='robots' content='max-image-preview:large' />
Now two meta-mega robots are visible in the source code, one created by your plugin, the other by WordPress itself.
The latter is removed by adding the line
remove_action( 'wp_head', 'wp_robots', 1 );
to file functions.php. Make your plugin disable the extra robots meta tag itself.Also make spaces between directives:
<meta name="robots" content="max-snippet:-1,max-image-preview:standard,max-video-preview:-1" />
to make it like this:
<meta name="robots" content="max-snippet:-1, max-image-preview:standard, max-video-preview:-1" />
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Meta Tags Robots’ is closed to new replies.