Skip to content

Instantly share code, notes, and snippets.

Created May 19, 2012 22:17
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
change WP login logo
/** change admin login logo **/
function custom_loginlogo() {
echo '<style type="text/css">
body.login div#login h1 a {background-image: url('.get_bloginfo('home').'/wp-content/themes/the-theme/images/admin-logo.png) !important; }
add_action('login_head', 'custom_loginlogo');
/* -- changes the url of login logo -- */
function my_login_logo_url() {
return get_bloginfo( 'url' );
add_filter( 'login_headerurl', 'my_login_logo_url' );
function my_login_logo_url_title() {
return 'the site name';
add_filter( 'login_headertitle', 'my_login_logo_url_title' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment