Custom Logo wordpress Login Snippet
//custom login code AND hide register link
function custom_login_logo() {
echo ‘<style type=”text/css”>h1 a { background: url(‘.get_bloginfo(‘template_directory’).’/images/logo.png) 50% 50% no-repeat !important; height:100px !important; } body.login div#login p#nav {display:none; visibility:hidden !important;} #backtoblog{float:left; .password{float:left; margin:15px !important}</style>’;
}
add_action(‘login_head’, ‘custom_login_logo’);
function my_login_title() { return get_option(‘blogname’); }
add_filter(‘login_headertitle’, ‘my_login_title’);
function custom_redirect_link() {
echo ‘<p><a class=”password” href=’; echo wp_lostpassword_url(); echo ‘ title=”Lost Password”>Forgot Password?</a></p>’;
}
add_action(‘login_form’, ‘custom_redirect_link’);
function change_wp_login_url() {
return ‘/’;
}
add_filter(‘login_headerurl’, ‘change_wp_login_url’);