Created
February 10, 2015 23:40
-
-
Save paulvanbuuren/afbd20429ec65f3f2589 to your computer and use it in GitHub Desktop.
WordPress: Add Logo to Admin Page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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