Skip to content

Instantly share code, notes, and snippets.

@aliciaduffy
Last active October 8, 2015 17:08
Show Gist options
  • Save aliciaduffy/3362635 to your computer and use it in GitHub Desktop.
Save aliciaduffy/3362635 to your computer and use it in GitHub Desktop.
WordPress / Change Login logo,link,and title
<?php
// changing the login page URL
function THEMENAME_put_my_url(){
return get_home_url(); // changes the url link from wordpress.org to your blog or website's url
}
add_filter('login_headerurl', 'THEMENAME_put_my_url');
// changing the login page URL hover text
function THEMENAME_put_my_title(){
return get_option('blogname'); // changing the title from "Powered by WordPress" to whatever you wish
}
add_filter('login_headertitle', 'THEMENAME_put_my_title');
// changing the login logo
function THEMENAME_login_logo() {
echo '<style type="text/css">h1 a { background-image: url('. get_stylesheet_directory_uri() .'/images/login-logo.png) !important; padding-bottom: 26px !important; }</style>';
}
add_action('login_head', 'THEMENAME_login_logo');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment