Created
February 28, 2013 09:14
-
-
Save chuckreynolds/5055409 to your computer and use it in GitHub Desktop.
Change WordPress wp-login.php form header logo and link and title
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
// Change wp-login.php form header logo & link & title | |
function ryno_custom_wplogin_logo() { | |
echo "<style type=\"text/css\"> | |
h1 a { background-image:url(".get_bloginfo('template_directory')."/images/the_new_logo.png) !important; } | |
</style>"; | |
} | |
add_action('login_head', 'ryno_custom_wplogin_logo'); | |
function ryno_change_wplogin_url() { | |
return get_bloginfo('url'); | |
} | |
add_filter('login_headerurl', 'ryno_change_wplogin_url'); | |
function ryno_change_wplogin_title() { | |
return get_option('blogname'); | |
} | |
add_filter('login_headertitle', 'ryno_change_wplogin_title'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment