change logo of wordpress login page

it is very task to change the logo of login page.
open your template folder
open function.php file in editor
copy this code and paste it in file

<?php
function custem_login_logo()
{
echo '
h1 a{background-image:url(‘.get_bloginfo(‘template_directory’)’./images/yourfile) !important;}’;
}
add_action(‘login_head’,’custem_login_logo’);
?>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s