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' );
?>

5 thoughts on “How to remove the WordPress.org link from Login / Register Page

  1. 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

Leave a Reply

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