Skip to content

Instantly share code, notes, and snippets.

@VirtuBox
Created August 22, 2018 15:20
Show Gist options
  • Save VirtuBox/3a5e3e5d684efc55d9b1d24eaf6b2985 to your computer and use it in GitHub Desktop.
Save VirtuBox/3a5e3e5d684efc55d9b1d24eaf6b2985 to your computer and use it in GitHub Desktop.
[WordPress] Replace WordPress logo on the page wp-login.php
// custom admin login logo
function custom_login_logo() {
echo '<style type="text/css">
h1 a { background-image: url(' . get_stylesheet_directory_uri() . '/images/logo.png) !important; }
</style>';
}
add_action('login_head', 'custom_login_logo');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment