2

I want to remove all the links from my network login page ("Register","Lost your password" and "Back to site") how can i do that?

enter image description here

6

I am not sure there is a way to suppress all these links, but you can hide them with CSS:

add_action( 'login_head', 'hide_login_nav' );

function hide_login_nav()
{
    ?><style>#nav,#backtoblog{display:none}</style><?php
}

Result:

enter image description here

  • Was typing out this answer when you posted it. This is the only way I've been able to do it reliably. – Andrew Bartel May 10 '13 at 17:24
  • @AndrewBartel Type faster! :P – fuxia May 10 '13 at 17:25
  • Twice in two days I've been beaten to the punch! You'd think ~80 wpm would be enough. – Andrew Bartel May 10 '13 at 17:25
  • @toscho ,i love you – Ghinnersmee May 10 '13 at 17:29
  • and how could I just change the text on this link? I don't wan to hide, but display another text... – vinigarcia87 Sep 29 '14 at 16:20
-1

just go to htdocs->then ur site->wp-login.php page and find function login_footer($input_id = '') {

    comment this line //printf( _x( '&larr; Back to %s', 'site' ), get_bloginfo( 'title', 'display' ) );

and if want to hide all the URL's just comment the whole function

  • 3
    You should never modify WordPress core files. Not only will your changes will be lost after an upgrade, but it's just bad practice. – Matthew Clark Feb 17 '17 at 19:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.