• Blog

    Latest from our Blog

  • Tools

    Our Favourite WP Tools

  • Hosting

    Recommended Web Hosts

  • Coupons

    Get great money off deals

  • Themes

    WordPress Theme Directory

  • Plugins

    WordPress Plugins Directory

  • Promote

    Your WordPress Product

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?


Post Tags

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 +

12 Comments

  1. Dave,

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

    Have a great day !

Leave a Reply

* Required Fields.
Your email will not be published.

Search

Our Sponsors