Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Replaces WordPress login header logo
add_action( 'login_head', 'namespace_login_style' );
* Replaces the login header logo
function namespace_login_style() {
echo '<style>.login h1 a { background-image: url( ' . get_template_directory_uri() . '/images/logo.png ) !important; }</style>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment