Yoast SEO
[resolved] [Plugin: WordPress SEO by Yoast] remove noindex on login page (5 posts)

  1. Popescu M
    Posted 4 years ago #

    I saw that my simple press forum was not indexed by google because there was an automatic "noindex" insertion by yoast wordpress seo. I was searching to disable this option but there is no way to do that, so I've searched for it in the php files and found the function noindex_page() in class-frontend.php where I've commented out the line echo '<meta name="robots" content="noindex" />'."\n"; and now my forum is indexed.

    I need you to modify the plugin so we can choose if we want to index or not the login pages because some of use are using the login template in other sections of our websites.



  2. ausip
    Posted 4 years ago #

    I migrated from All-In-One SEO to Worpress SEO by YOAST. Mysteriously my forum was de-indexed by google. Once I noticed I came across your post and made a modification to the above mentioned line. I used a couple of online web page crawling diagnostic utilities to test access to my forum and they verified that there was a noindex in the page somewhere, even though I could not find it when viewing the source through Chrome.

    I tried commenting it out, but that didn't work. I changed "noindex" to "index" and the diagnostic utilities could then crawl the forum pages.

    I made this change 3 days ago and google still hasn't indexed my Simple:Press forum. In those 3 days I have submitted URL's to google, facebook, twitter, digg and many other bookmarking sites to try and speed up indexing.

    This site is part of a Multi Site setup. I released another site on this multi-site network just yesterday. This entire site has been indexed within 24hrs, yet it's simple:press forum has not been indexed either.

    Any ideas? Anyone?

    The sites are:


  3. ausip
    Posted 4 years ago #

    I forgot to mention.

    The forum URL's are


  4. boborg
    Posted 4 years ago #

    Any update on your issue? I have just tried commented out the line echo '<meta name="robots" content="noindex" />'."\n";

    But if that does not work I would be interested in how to resolve this.

  5. Joost de Valk
    Plugin Author

    Posted 4 years ago #

    Why the hell would you use your LOGIN template for anything else? That's just a wrong use of the login template, not a fault of my plugin. By the way, the noindex on the login page is in core too...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic