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 */
} 
?>

 

  • anonymous

    continuously i used to read smaller articles or reviews which as well clear their motive, and that is also happening with this article which I am
    reading now.

  • cute girl

    What’s up, yup this article is in fact nice and I have learned lot of things
    from it about blogging. thanks.