Wordpress Custom Admin Logos


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

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/


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.