Change login page logo in wordpress

function my_custom_login_logo()
{
echo '
<style  type="text/css">

h1 a { background-image:url(' . get_bloginfo('template_directory') . '/images/logo.png) !important;
}
</style>

';
}
add_action('login_head',  'my_custom_login_logo'); 

Change login page header url in wordpress

function change_wp_login_url() {
return get_site_url();
// or return home_url( '/' );
}
add_filter('login_headerurl', 'change_wp_login_url');

Change header title:

function change_wp_login_title() {
return get_bloginfo( 'name' );
// or return 'my site title';
}
add_filter('login_headertitle', 'change_wp_login_title');
Advertisements