Skip to content

Instantly share code, notes, and snippets.

@Steven-Rose
Created February 3, 2012 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Steven-Rose/1728766 to your computer and use it in GitHub Desktop.
Save Steven-Rose/1728766 to your computer and use it in GitHub Desktop.
WP: Custom admin favicon/logo
add_action('admin_head', 'custom_logo');
function custom_logo() {
echo '<style type="text/css">
#header-logo { background-image: url('.get_bloginfo('template_directory').'/favicon.ico) !important; }
</style>';
}
add_action('login_head', 'custom_login_logo');
function custom_login_logo() {
echo '<style type="text/css">
h1 a { background-image:url('.get_bloginfo('template_directory').'/img/logo.png) !important; }
</style>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment