Jul 10, 2011

Wordpress Change Admin Logo

We have all seen the classic WordPress symbolism within the admin panel. Well with this bit of functionality inside your functions.php file it’s easy to build custom branding! Just be sure to upload admin_logo.png into your templates’ images folder.

[php]
function custom_admin_logo() {
echo '<style type="text/css">
#header-logo { background-image: url('.get_bloginfo('template_directory').'/images/admin_logo.png) !important; }
</style>';
}
add_action('admin_head', 'custom_admin_logo');
[/php]

No comments :

Post a Comment