Posted By

rliverman on 11/19/10


Tagged

wordpress admin custom Logo


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

m_moloch
vehler
voove


Wordpress Custom Admin Logos


 / Published in: PHP
 

Add custom logo to the login and dashboard of wordpress.

More customization functions at: http://sixrevisions.com/wordpress/how-to-customize-the-wordpress-admin-area/

  1. // 32px square
  2. function custom_logo() {
  3. echo '<style type="text/css">
  4. #header-logo { background-image: url('.get_bloginfo('template_directory').'/images/admin_logo.png) !important; }
  5. </style>';
  6. }
  7.  
  8. add_action('admin_head', 'custom_logo');
  9.  
  10. // 325px by 70px should be about right
  11. function custom_login_logo() {
  12. echo '<style type="text/css">
  13. h1 a { background-image:url('.get_bloginfo('template_directory').'/images/login_logo.png) !important; }
  14. </style>';
  15. }
  16.  
  17. add_action('login_head', 'custom_login_logo');

Report this snippet  

You need to login to post a comment.