Created
September 6, 2013 03:40
-
-
Save trentsnippets/6459226 to your computer and use it in GitHub Desktop.
Add a custom logo to the login screen for wordpress.
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
/** | |
* Custom admin login header link | |
*/ | |
function custom_login_url() { | |
return home_url( '/' ); | |
} | |
add_filter( 'login_headerurl', 'custom_login_url' ); | |
/** | |
* Custom admin login header link alt text | |
*/ | |
function custom_login_title() { | |
return get_option( 'blogname' ); | |
} | |
add_filter( 'login_headertitle', 'custom_login_title' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment