Customize Login Page of WordPress

Change the Logo Image

Change the wordpress logo with your logo by this code (paste these lines in your theme function.php file)

function custom_login_logo() {
echo ‘<style type=”text/css”>h1 a { background: url(‘.get_bloginfo(‘template_directory’).’/images/logo-login.gif) 50% 50% no-repeat !important; }</style>’; } add_action(‘login_head’, ‘custom_login_logo’);

Change the URL Of Logo

On login page of wordpress when you click on logo you will redirect to wordpress.org site, this code change url path to your site

function change_wp_login_url() {
return bloginfo(‘url’);
}
add_filter(‘login_headerurl’, ‘change_wp_login_url’);

 

 

Change the Title of Login Page

change the title attribute of the image you just replaced

function change_wp_login_title() {
return get_option(‘blogname’);
}
add_filter(‘login_headertitle’, ‘change_wp_login_title’);