• Resolved asap247

    (@asap247)


    Hi,

    Is there a hook or settings option to enable index status for Login Page? The default Login page in wordpress is noindex. And I can’t seem to find any options to enable indexing.

    This way the login page can show up in the search engines and sitelink extensions.

    Membership sites have registration signup pages and login pages that people often search for in google.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello Asap247,

    Thanks for reaching out regarding setting your pages to index. You should find this guide helpful – https://yoast.com/help/how-do-i-noindex-urls/

    Thread Starter asap247

    (@asap247)

    Hi, thanks for the reply.

    This article seems to be about how to noindex urls. I want to do the opposite. The login page is already noindex, I want to allow index for the login page. I couldn’t find any yoast settings page that controls the index status of the Login page.

    Is there any yoast developer hooks that can allow index for the login page?

    As you know by default WordPress login page is set to noindex in core, you might try the following snippet to remove the noindex tag from the meta robot on the page source.

    add_filter( 'wp_robots', function( $robots ) {
    	if ( $GLOBALS['pagenow'] === 'wp-login.php' ) {
    		$robots['noindex'] = false;
    	}
    
        return $robots;
    }, 11 );
    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Enable Option to Index Login Page’ is closed to new replies.