function custom_login_logo() {
?>
<style type="text/css">
body.login div#login h1 a {
background-image: url("<?php echo get_template_directory_uri(); ?>/images/admin-logo.png");
padding-bottom: 10px;
}
</style>
<?php
}
add_action( 'login_enqueue_scripts', 'custom_login_logo');
function custom_wp_login_url() {
return get_home_url(); // or return any other URL you want
}
add_filter('login_headerurl', 'custom_wp_login_url');
=============
// start
function add_favicon() {
$favicon_url = get_stylesheet_directory_uri() . '/images/favicon.ico';
echo '<link rel="shortcut icon" href="' . $favicon_url . '" />';
}
add_action('login_head', 'add_favicon');
add_action('admin_head', 'add_favicon');
function my_login_head() {
echo "
<style>
body.login #login h1 a {
background: url('".get_bloginfo('template_url')."/images/admin-logo.png') no-repeat center top;
margin: 0 auto;
height: 205px;
margin: 0 auto;
width: 347px;
}
</style>
";
}
add_action("login_head", "my_login_head");