Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
WordPress: Add Logo to Admin Page
// from:
// ============================================================================
// If you’re going to add your logo to the login page, you may as well top things off by adding to the admin page too, right?
// Just add the following code and upload your logo (again, feel free to change the file location to suit):
// ============================================================================
function custom_admin_logo() {
echo '<style type="text/css">
#header-logo { background-image: url('.get_bloginfo('template_directory').'/images/admin_logo.png) !important; }
add_action('admin_head', 'custom_admin_logo');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment