Skip to content

Instantly share code, notes, and snippets.

@mavisland
Created February 27, 2014 17:00
Show Gist options
  • Save mavisland/9254296 to your computer and use it in GitHub Desktop.
Save mavisland/9254296 to your computer and use it in GitHub Desktop.
Adding this PHP code to the functions.php of your wordpress theme will allow you to replace the default wordpress login logo.
<?php
function loginLogo() {
echo '<style type="text/css">
h1 a { background-image:url('.get_bloginfo('template_directory').'path/to/logo.gif) !important; }
</style>';
}
add_action('login_head', 'loginLogo');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment