Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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