To change your WordPress Admin’s login page logo and URL, simply paste the following code into your themes functions.php file:
// WP Admin Logo and URL
function custom_loginlogo() {
echo '<style type="text/css">
h1 a {background-image: url('.get_bloginfo('template_directory').'/assets/images/new_logo.png) !important; }
</style>';
}
add_action('login_head', 'custom_loginlogo');
add_filter( 'login_headerurl', 'my_custom_login_url' );
function my_custom_login_url($url) {
return 'http://example.com';
}
In the above code, we’ve uploaded a file named new_logo.png to the /assets/images/ folder under the current theme. Of course change out the actual logo image and site URL.
If you need help performing this task, reach out to Tiempo (my company, big button below) for a quick one on one session and we’d be happy to show you how to do that!