WordPress Change logo on wp-login page

If you want to change default wordpress logo on the wp-login.php page then you can change wordpress logo by your logo by just adding following lines in your theme’s function php files.

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

add_action('login_head', 'my_custom_login_logo');

You have to upload your logo in your theme’s directory with name “login-logo.png


Leave a Reply

Your email address will not be published. Required fields are marked *


  1. Excellent thanks for this good trick……

    1. Oh, and the header title (so it does not say Powered by WordPress) just to be complete, here’s what we use:

      function g3_the_url() {
      return get_bloginfo( ‘siteurl’ );
      add_filter( ‘login_headerurl’, ‘g3_the_url’ );
      function g3_the_header_title () {
      return get_bloginfo( ‘name’ );
      add_filter( ‘login_headertitle’, ‘g3_the_header_title’ );