Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
wordpress custom login logo change function
<?php
/* ------------------------------------------------
Custom login image logo
------------------------------------------------ */
function my_custom_login_logo() {
echo '<style type="text/css">
h1 a { background-image:url('.get_bloginfo('template_url').'/images/loginlogo.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