/ 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/
More customization functions at:
http://sixrevisions.com/wordpress/how-to-customize-the-wordpress-admin-area/
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// 32px square function custom_logo() { echo '<style type="text/css"> #header-logo { background-image: url('.get_bloginfo('template_directory').'/images/admin_logo.png) !important; } </style>'; } add_action('admin_head', 'custom_logo'); // 325px by 70px should be about right function custom_login_logo() { echo '<style type="text/css"> h1 a { background-image:url('.get_bloginfo('template_directory').'/images/login_logo.png) !important; } </style>'; } add_action('login_head', 'custom_login_logo');