Location of in Wordpress files
Location of <meta name='robots' content='noindex,follow' /> in Wordpress files
I'm working on a Wordpress site built by someone else and found that this meta tag is on all pages:
<meta name='robots' content='noindex,follow' />
I need to edit this. I looked inside header.php, header-main.php, and header-single.php and didn't find it. Any idea what file it might be located in or how to locate it?
3 Answers
3
There might be a plugin which is inserting that line. to be more specific, check for any SEO related plugin which is a general candidate for this meta tag.
The code is in almost 20 files in various forms in wp-includes, wp-content, and wp-admin. For anyone who runs into this problem, download a copy of your site, open the folder with an IDE with a "search in folder" function like Sublime, and search for both this meta tag code and a function called wp_no_robots(), which adds a "noidex" tag when it's called.
Access WordPress admin area and go to Settings and select Reading.There you will find an option called Search Engine Visibility. Check the box that says Discourage search engines from indexing this site. And Disable this.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.