Created
April 22, 2014 12:04
-
-
Save fabianjaehnke/11176168 to your computer and use it in GitHub Desktop.
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
// Replaces the login header logo URL | |
add_filter( 'login_headerurl', 'namespace_login_headerurl' ); | |
function namespace_login_headerurl( $url ) { | |
$url = home_url( '/' ); | |
return $url; | |
} | |
// Replaces the login header logo title | |
add_filter( 'login_headertitle', 'namespace_login_headertitle' ); | |
function namespace_login_headertitle( $title ) { | |
$title = get_bloginfo( 'name' ); | |
return $title; | |
} | |
// Replaces the login header logo | |
add_action( 'login_head', 'namespace_login_style' ); | |
function namespace_login_style() { | |
echo '<style>.login h1 a { background-image: url( ' . get_template_directory_uri() . '/images/Inkwell-Logo.png ) !important; background-size: 271px 202px; height: 150px; }</style>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment