YPSA Webmaster's Blog

Skip to content Skip to sidebar

How to change WordPress logo on login page

Custom login logo in wordpress theme

If you want to change the WordPress Login screen logo to your own site logo for branding, you can change it easily. Insert below code into theme functions.php.


<?php

//Change default login logo
function my_custom_login_logo() {
 echo '<style type="text/css">
 h1 a { background-image:url('.get_bloginfo('template_directory').'/images/login_logo.gif) !important; }
 </style>';
}

add_action('login_head', 'my_custom_login_logo');
?>

Create your logo in 274px X 63px size and name it login_logo.gif. Upload it into theme images folder. You are done.

About the author

Abdullah Al Shakir

I am a web developer and graphics designer have been working in YPSA as webmaster since 2006. I am expert in XHTML, CSS, JavaScript and PHP programming. I am Wordpress theme and plugin developer. I am a father and husband living in Bangladesh.

You may also like

Leave a Reply