Removing “Noindex, follow” from pages [closed]

I am using WordPress SEO plugin written by Yoast. This plugin, by default, shows “noindex,follow” on every page. I am sure I know the file that displays “noindex, follow” but after much “tweaking” I can’t seem to remove the code.

Here’s the file: https://plugins.svn.wordpress.org/wordpress-seo/tags/1.2.8.3/frontend/class-frontend.php

I’d really appreciate if you can let me know which line needs to be commented out, or what needs to be edited. 🙂

3 Answers
3

Ooohhh you mean “pagination” pages. Gotcha now!

It’s hard to say for sure(I know I know), but at first glance it looks like this block of code would be what you’re after:

if ( $wp_query->query_vars['paged'] && $wp_query->query_vars['paged'] > 1 && isset( $options['noindex-subpages'] ) && $options['noindex-subpages'] ) {
                $robots['index']  = 'noindex';
                $robots['follow'] = 'follow';
            }
        }

Leave a Comment