Posted By

alp on 04/03/11


Tagged

wordpress theming


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

DesignGoggles
mfgalex


Replace the default WordPress “W” logo in the administrative header with a custom alternative


 / Published in: PHP
 

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

Place in functions.php

  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.