I am trying to change the login logo URL and hover title. I am using the code below but return bloginfo('url');
and return bloginfo('name');
aren’t outputting the desired href
and title
. I’m also using a child theme if that matters at all. What do I need to use instead of return bloginfo('url');
and return bloginfo('name');
?
/* == Change Logo URL ==============================*/
function my_url_login(){
return bloginfo('url');
}
add_filter('login_headerurl', 'my_url_login');
/* == Change Logo URL Hover Text ==============================*/
function my_url_login_hover(){
return bloginfo('name');
}
add_filter('login_headertitle', 'my_url_login_hover');
Try these filters instead
Though if you’re on a Network/MultiSite you might need
network_home_url()
insteadYou have to do is simply paste the codes below in your theme’s functions.php file:
Custom Login URL :
Site URL :
For more detail visit following blog :
http://www.codecanal.com/change-login-logo-url-wordpress/