In WordPress by default the login logo url points to WordPress.org. If you have a customized WordPress login logo, or a completely custom WordPress login page design in your site, then you should probably change the login logo url to your main site or anything that is more relevant to your site.

You have to do is simply paste the codes below in your theme’s functions.php file:

1. Custom Login URL :

<?php 
add_filter( 'login_headerurl', 'codecanal_loginlogo_url' ); 
function codecanal_loginlogo_url($url) 
{
 return 'http://www.codecanal.com'; 
/* Put your desired custom URL here */ 
} 
?>

2. Site URL :

<?php 
add_filter( 'login_headerurl', 'codecanal_loginlogo_url' ); 
function codecanal_loginlogo_url($url) 
{
return home_url(); 
/* User will be redirected to the site home page */
} 
?>

 

There are currently no comments.