Skip to content

Instantly share code, notes, and snippets.

@benjino
Forked from rossteasley/gist:3058013
Last active December 20, 2015 01:39
Show Gist options
  • Save benjino/6050691 to your computer and use it in GitHub Desktop.
Save benjino/6050691 to your computer and use it in GitHub Desktop.
// changing the login page logo
function rgt_custom_dashboard_logo(){
echo '<style type="text/css">
h1 a {
background-image:url('.get_stylesheet_directory_uri().'/images/put-your-logo-filename-here.gif) !important;
}
</style>';
}
add_action('login_head', 'rgt_custom_dashboard_logo');
// changing the login page URL
function put_my_url(){
return ('http://www.yourdomain.com/'); // putting my URL in place of the WordPress one
}
add_filter('login_headerurl', 'put_my_url');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment