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

Home » Blog » Resources » Wordpress » 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' );
?>
Tags: ,

6 Comments on "How to remove the WordPress.org link from Login / Register Page"

  1. Peter says:

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

    Reply →
  2. Jai says:

    thanks for sharing the code.. looking for this one.. BTW how to add custom logo in login page..?

    Reply →
  3. Tom says:

    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

    Reply →
  4. Revan says:

    Nice article Nilesh ……..

    Reply →

Got something to say? Go for it!

CommentLuv badge

Magento : Return Store Variables (name,phone number,email) - We can get store variables like name,phone number, em... http://t.co/FEU4iWkZvZ - 1 week ago