How to Customize the WordPress Dashboard Logo

July 6, 2010 by Efraín | 1 Comment

Here is another useful tip for those who build WordPress based websites for clients. This code will replace the WordPress logo in your dashboard header. All you have to do is add the code bellow to the functions.php file located in your theme folder.

add_action('admin_head', 'my_custom_logo');
function my_custom_logo() {
   echo '


   ';
}

After you have done that, create a 30px wide by 31px tall image and save it in your theme’s images folder. Note that the code assumes that you saved the image inside your theme’s images folder (I think this is the most appropriate place to save it) but you can easily change the path if needed.

Credits: wpCanyon

One Response

  1. [...] I posted a tip on how to customize the WordPress dashboard logo. Whether you’re building a WordPress powered website for a client or yourself, you might also [...]

Leave a Reply