Skip to content

Instantly share code, notes, and snippets.

@paulvanbuuren
Created February 10, 2015 23:40
Show Gist options
  • Save paulvanbuuren/afbd20429ec65f3f2589 to your computer and use it in GitHub Desktop.
Save paulvanbuuren/afbd20429ec65f3f2589 to your computer and use it in GitHub Desktop.
WordPress: Add Logo to Admin Page
// from: http://www.codeinwp.com/blog/wordpress-image-code-snippets/
// ============================================================================
// 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; }
</style>';
}
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