Hi guys, Google seach console shows nearly 54 URLs out of 196 URLs discovered are "Excluded by ‘noindex’ tag". My website is a wp woo commerce website. now i have no idea how do i remove noindex from all these pages? Please advise. Thank you.
What have you tried so far? I saw one solution that goes like this: Log in to WordPress. Go to Settings → Reading. Scroll down the page to where it says "Search Engine Visibility" Uncheck the box next to "Discourage search engines from indexing this site" Hit the "Save Changes" button below. If that didn't work, try this: In the public_html directory find the folder named wp-includes. In the folder find the file named general-template.php. Open it, find: function wp_no_robots() { if ( get_option( 'blog_public' ) ) { echo "<meta name='robots' content='noindex,follow' />\n"; return; } echo "<meta name='robots' content='noindex,nofollow' />\n"; } Code (markup): Replace it with: function wp_no_robots() { if ( get_option( 'blog_public' ) ) { echo "<meta name='robots' content='index,follow' />\n"; return; } echo "<meta name='robots' content='index,follow' />\n"; } Code (markup): Then find: function wp_sensitive_page_meta() { ?> <meta name='robots' content='noindex,noarchive' /> <meta name='referrer' content='strict-origin-when-cross-origin' /> <?php } Code (markup): Replace it with: function wp_sensitive_page_meta() { ?> <meta name='robots' content='index,archive' /> <meta name='referrer' content='strict-origin-when-cross-origin' /> <?php } Code (markup):
i am sorry, the text not found when find in the general-template.php even i tried just 'robots' and not found even that word.
And you are sure these are pages that need to be indexed? Certain plugins will add the tag automatically to pages that don't need to be indexed.
@ose Optimized, Thank you. i removed all the tags and now the site map looks clean and all the 404s have gone. Thank you for the very valuable tip.