Take a fresh look at your lifestyle.

Fix Yoast Noindex Tag from Your WordPress Blog RSS feed

4

This is a very big problem that has been existing for a very long period and  it seems this” noindex” issue won’t be fixed by Yoast Plugin developers so it is better one make a manual fix.

According to google webmaster, I discovered most of my posts were not indexed, especially my feed. Then i ran a URL inspection and discovered the issue is related to “X-Robots-Tag:  Noindex detected”.

You can make use of this tool (SEO BOOK) to check your URL too, it gives you details about your noindex and nofollow status.

Read also: New Method to Get Free Mobile Data on Any Network.

I made a search via google search engine and discovered the issue is from my Yoast plugin.

Also people were not able to get a fix as questions asked were not given attention by the developers.

I also go to my Yoast plugin, on search appearance to enable visibility for search engines, they are all enabled by default.

The error code goes thus; “Indexing allowed? No: ‘noindex’ detected in ‘X-Robots-Tag’ http header”.

noindex feed 1noindex

I then decided to play with the Yoast plugin codes a little of which i eventually got a fix after spending much time debugging.

Read also: How To Login to Netflix, IcFlix and Other Premium Sites With Free Cookies.

How To Fix Yoast Noindex Tag from Your Blog RSS feed

  • Login to your Cpanel/File-manager.
  • Then navigate to /wp-content/plugins/wordpress-seo/frontend.
  • Edit “class-frontend.php” on line 1345, delete the code below.

if ( ( is_feed() || is_robots() ) && headers_sent() === false ) {

noindex code

  • Then paste this code on that same line, make sure there’s no error.

// if ( ( is_feed() || is_robots() ) && headers_sent() === false ) {
if (is_robots() && headers_sent() === false ) {

noindex codeline

Then save, go back to your google URL inspection and recheck then google would give you a  green mark telling you it is now indexing check the “LIVE TEST” section.

Note: If need arise for you to update your Yoast SEO plugin, you have to re-modify as we’ve just done.

share

Loading...
4 Comments
  1. Noumans says

    I have WooCommerce Website. Google noindex my feed page. I need your suggestion should i remove noindex tag from my feed pages ? I’m selling gemstone

    1. Oludare Isaac says

      Just follow the above steps, it will fix any issue of noindex as long as you are using Yoast plugin.

      1. Noumans says

        Thanks a lot for the help.

        1. Oludare Isaac says

          Happy it worked for you.

Leave A Reply

error: Alert: Content is protected !!