javascript - Update the metatag in wordpress -
currently using yoast plugin seo. default assigns meta tag author page:
<meta name="robots" content="noindex,follow,noodp"/>
how can update tag to:
<meta name="robots" content="noindex, nofollow,noodp" />
log in wordpress website. when you’re logged in, in ‘dashboard’. on left-hand side, see menu. in menu, click on ‘seo’.
the ‘seo’ settings expand providing additional options. if don’t see ‘tools’ setting in ‘seo’ menu, please enable advanced settings first. yoast seo > dashboard (advanced disabled) menu advanced settings disabled enable advanced features
- click on ‘tools’. yoast seo > tools
click on ‘file editor’. menu not appear if wordpress install has disabled file editing. please enable file editing or edit file through ftp.
make changes robots.txt file. if not have robots.txt file, click button create it.
source:
https://kb.yoast.com/kb/how-to-edit-robots-txt-through-yoast-seo/
Comments
Post a Comment