Lego2012
12/13/2016 - 9:44 AM

Admin and Dashboard - Change the admin logo

Admin and Dashboard - Change the admin logo

<?php
// Do NOT include the opening php tag

<!-- 
Have you ever wanted to "feel" the WordPress dashboard closer to your business? How about featuring a new client's logo in there? That would be cool but installing a new plugin just for that sounds like too much. How about I tell you can do this with no plugin at all? Open the functions.php file and paste this: 
-->

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');

<!-- 
You now should put your logo in the wp-images folder and call it admin_logo.png. 
-->