How to Change Header Logo in Wordpress Dashboard

How to Change Header Logo in Wordpress Dashboard

Creating a theme for a client? why not give it a more customized look by changing the default "W" logo in Wordpress Admin Dashboard. Here is a simple code for that.

Open functions.php file of your theme and add the following code:

add_action('admin_head', 'my_custom_logo');

function my_custom_logo() {
   echo '
      <style type="text/css">
         #header-logo { background-image: url('.get_bloginfo('template_directory').'/images/custom-logo.gif) !important; }
      </style>
   ';
}

Now create a 30×31px transparent GIF image and save it in your theme’s images folder.

Thanks to Jacob Goldman for sharing this tip.

Montana Flynn
May 7, 2010 19:43 PM

Nicely done, love the WordPress Cookies!

ikalangita
August 19, 2010 12:20 PM

thanks for tips

Leave a Reply