How to remove the WordPress.org link from Login / Register Page

On self hosted wordpress blogs wordpress logo on wordpress login or register page link to wordpress.org website.

If you want to remove WordPress.org link from logo of your wordpress blog then just add following links of code inside your themes functions.php file.

/* WordPress Change Login page logo link */
function change_login_page_url( $url ) {
    return get_bloginfo( 'url' );
}
add_filter( 'login_headerurl', 'change_login_page_url' );

Make sure to add above code inside PHP tag like

<?php
/* WordPress Change Login page logo link */
function change_login_page_url( $url ) {
    return get_bloginfo( 'url' );
}
add_filter( 'login_headerurl', 'change_login_page_url' );
?>

In above code links url is changed to your website url. If you want to link logo to a different url then use following code and replace mywebsite.com with your link.

<?php
/* WordPress Change Login page logo link */
function change_login_page_url( $url ) {
    $link_url='http://mywebsite.com';
    return $link_url;
}
add_filter( 'login_headerurl', 'change_login_page_url' );
?>

Leave a Reply

Your email address will not be published. Required fields are marked *

5 Comments

  1. Thanks nilesh.
    Would this have to be redone every time you upgrade?

    1. No. You don’t have to worry about updating. As this is done using filter functions.

  2. I’m new to wordpress and this site is just great ! Thank you so much, for your time and great step by step instruction that everyone can follow

  3. Nice article Nilesh ……..