In: WordPress
September 17th, 2010.Sometimes, there is a need to replace WordPress admin logo in wp-admin of your clients website. It is a simple task – simple to do as copying this snippet into your functions.php file, and adding your clients logo to folder images in your WordPress theme.
1 2 3 4 5 6 7 8 9 10 11 12 | function wordpress_custom_admin_logo() { echo ' <style type="text/css"> #header-logo{ background: url(' . get_bloginfo('template_directory') . '/images/custom-admin-logo-small.png) center center no-repeat; width: 32px; height: 32px; } </style>'; } add_action('admin_head', 'wordpress_custom_admin_logo'); |