Custom Dashboard logo (WordPress)


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. //hook the administrative header output
  2. add_action('admin_head', 'my_custom_logo');
  3.  
  4. function my_custom_logo() {
  5. echo '
  6. <style type="text/css">
  7. #header-logo { background-image: url('.get_bloginfo('template_directory').'/images/custom-logo.gif) !important; }
  8. </style>
  9. ';
  10. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.