Currently I am using Yoast plugin for seo. By default it assigns this meta tag for author page:
<meta name="robots" content="noindex,follow,noodp"/>
How can I update this tag to:
<meta name="robots" content="noindex, nofollow,noodp" />
Currently I am using Yoast plugin for seo. By default it assigns this meta tag for author page:
<meta name="robots" content="noindex,follow,noodp"/>
How can I update this tag to:
<meta name="robots" content="noindex, nofollow,noodp" />
2
Answers
You can bind to the
wp_head
hook and overwrite the meta tag by adding the following code to your functions.php fileLog in to your WordPress website. When you’re logged in, you will be
in your ‘Dashboard’. On the left-hand side, you will see a menu. In
that menu, click on ‘SEO’.
The ‘SEO’ settings will expand providing you additional options. If you don’t see the ‘Tools’ setting in your ‘SEO’ menu, please
enable your advanced settings first. Yoast SEO > Dashboard (Advanced
disabled) Menu with advanced settings disabled Enable advanced
features
Click on ‘File Editor’. This menu will not appear if your WordPress install has disabled file editing. Please enable file
editing or edit the file through FTP.
Make the changes to your robots.txt file. If you do not have a robots.txt file, click the button to create it.
Source:
https://kb.yoast.com/kb/how-to-edit-robots-txt-through-yoast-seo/