By default, the login page to your admin area has the WordPress logo above the login form. But you can very easily change that to any image of your choice. This is perfect for branding your login page, particularly if you’re providing a site for a client, or you have a multi-author blog.

It really doesn’t require much at all. Simply paste this following function into your functions.php file (in wp-content/themes/yourthemefolder/) and change the filename to the filename of your logo. Just be sure to upload the logo file to the images directory of your current theme (or alternatively, change the complete URL in the function below):

// Custom Login Logo //

function diww_custom_login_logo() {
    echo '<
        h1 a { background-image:url('.get_bloginfo('template_directory').'/images/diww-login-logo.png) !important; }


add_action('login_head', 'diww_custom_login_logo');

Now when you go to your login page, you should see the WordPress logo replaced by your own logo.

Pretty neat huh?

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)

Disclosure: This page may contain affiliate links for which we will receive compensation if a purchase is made via the link.

Dave Clements runs Do It With WordPress and designs awesome websites and offers WordPress consulting services in his spare time, along with eating Wheat Thins, spending time with friends and family, watching Indie films and playing with his array of Apple products.

Leave Yours +


  1. Dave,

    Good to see you’re doing guest posting. Nice post, by the way. Tweeted…

    Have a great day !

  2. it was very helpful

  • Comments are Closed

Our Sponsors