Created
February 22, 2013 00:23
-
-
Save cdils/5009749 to your computer and use it in GitHub Desktop.
Customize the link and logo on the WordPress login page.
This file contains hidden or 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
// Use your own external URL logo link | |
function my_url_login(){ | |
return "http://www.carriedils.com/"; // your URL here | |
} | |
add_filter('login_headerurl', 'my_url_login'); | |
// Custom WordPress Login Logo | |
function my_custom_login_logo() { | |
echo '<style type="text/css"> | |
.login h1 a { background-image:url('.get_bloginfo('stylesheet_directory').'/images/My-Logo.png) !important; } | |
</style>'; | |
} | |
add_action('login_head', 'my_custom_login_logo'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Carrie - if you want the site's front page to be the url in your first function, you can use this instead of hard-coding it:
return siteurl();
Useful gist, by the way. I was having to do this for a project this week.