Change WordPress login logo

Change WordPress login logo

How to change the WordPress login page logo link

open function.php in your theme directory and insert the following to change the logo

function my_login_head() {
echo "
";
}

make sure to upload your logo to the image directory in your theme directory.

To change the tooltip when you rollover the logo insert the following into the above file (function.php):

function change_title_on_logo() {
/*  replace Walid BaniHani with your name or whatever!*/
return 'Walid BaniHani';
}

To change the link on the logo insert the following into the above file (function.php).

add_filter('login_headertitle', 'change_title_on_logo');
function loginpage_custom_link() {
/*replace banihani.net with your domain.*/
return 'http://www.banihani.net';
}
add_filter('login_headerurl','loginpage_custom_link');