WordPress Sites: Customize login page with different logo and URL

For those who use BuddyPress on top of WordPress, you might want to update your register and log-in page by replacing the familiar WordPress login page with a branded logo themed to your current site.  Just add this code to your active child theme’s function.php file and update what I put in for “ProflicFutility.com” with your own site and logo image file name. You should put it near the end of your function.php file and remember, do NOT put in any closing PHP tags! “?>”

function custom_login_logo() {
   echo '<style type="text/css">
   h1 a { background-image: url(wp-content/uploads/prolific-futility-logo.png) !important;
   width:250px!important}
   </style>';
}
add_action('login_head', 'custom_login_logo');

function put_my_url(){
   return ('http://www.prolificfutility.com');
}
add_filter('login_headerurl', 'put_my_url');

More details of other elements you can update can be found on WordPress’s site at: http://codex.wordpress.org/Customizing_the_Login_Form.

About Author:

Senior Cloud Software Engineer and 25+ years experienced video production, video editing and 3D animation services for a variety of global clients including local video production here in Jacksonville, Florida.

Leave a Comment

Your email address will not be published. Required fields are marked *