Customize WordPress Login Logo With Your Own Logo

At login page into WordPress admin, we may see same default wordpress logo. This may be boring for some people. Using different logo can give added value and expressing the identity of certain website, while it may means nothing at all. Anyway, in order to customize wordpress login page logo into your own logo can be achieve in two ways.

Using functions.php modification

  • Simply find and add this code below into your theme’s functions.php file.
[sourcecode language=’php’]

//Custom Login Logo
function my_custom_login_logo() {
echo ‘

‘;
}
add_action(‘login_head’, ‘my_custom_login_logo’);

[/sourcecode]
  • Create your own logo not exceed than 250pixels x 68pixels and upload into your theme’s images directory.
  • By default, the logo url link is linked to http://wordpress.org/. To change the url to your homepage, just add this another piece of code under the code above.
[sourcecode language=’php’]

//Custom Login Url
function change_wp_login_url() {
echo bloginfo(‘url’);
}
function change_wp_login_title() {
echo get_option(‘blogname’);
}
add_filter(‘login_headerurl’, ‘change_wp_login_url’);
add_filter(‘login_headertitle’, ‘change_wp_login_title’);

[/sourcecode]

Using WordPress Plugins

  • You may use wordpress plugins such as Theme My Login plugin. Follow the link and see how to use it.

The code originally found on WPRecipes and written by Rami. Great guys!