Software Developer

Hide the ‘Lost Password’ and ‘Register’ Links on wp-login.php

This hides the “Lost your password?” and “Register” links on the WordPress login page – wp-login.php.

/**
 * add custom admin login CSS to hide the Lost Password and Register links
 */
function isa_login_css() {
	echo '<style type="text/css">body.login #login p#nav {display:none;}</style>';
}
add_action('login_head', 'isa_login_css');

By

We've 2 Responses

Questions and Comments are Welcome

Your email address will not be published. All comments will be moderated.

Please wrap code in "code" bracket tags like this:

[code]

YOUR CODE HERE 

[/code]