Deleting Links from wp-login and wp-admin pages

Discussion in 'WordPress' started by pratik, Jul 20, 2010.

  1. #1
    Hi there,

    I am using a plugin to change the look my wp-login screen... but i would like to get rid of the two links which are present on these pages... namely, Register and Lost your password.

    How can I delete these links?

    Regards,
    pratik
     
    pratik, Jul 20, 2010 IP
  2. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can remove the register link by simply going to Dashboard => Settings => General and unchecking "Anyone can register".

    But to remove the lost password link, open wp-login.php and either remove or comment out this line:
    
    <a href="<?php echo site_url('wp-login.php?action=lostpassword', 'login') ?>" title="<?php _e('Password Lost and Found') ?>"><?php _e('Lost your password?') ?></a>
    
    Code (markup):
    It is line 618 in my editor, close to the bottom of the file. That is the only way I know but there may be other ways, like using a plugin.
     
    Last edited: Jul 20, 2010
    Cash Nebula, Jul 20, 2010 IP