Posted By

math89 on 12/28/09


Tagged

wordpress


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

BrianCoyDesign
kwameboame


Wordpress, Replace the default WordPress “W” logo in the dashboard


 / Published in: PHP
 

URL: http://www.smashingmagazine.com/2009/12/14/advanced-power-tips-for-wordpress-template-developers-reloaded/

Replace the default WordPress “W” logo in the administrative header with a custom one. Add this code inside the theme’s “functions.php” file.

  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  

You need to login to post a comment.