Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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');
share|improve this question

1 Answer 1

up vote 1 down vote accepted

Try these filters instead

// changing the logo link from to your site
function mb_login_url() {  return home_url(); }
add_filter( 'login_headerurl', 'mb_login_url' );

// changing the alt text on the logo to show your site name
function mb_login_title() { return get_option( 'blogname' ); }
add_filter( 'login_headertitle', 'mb_login_title' );

Though if you're on a Network/MultiSite you might need network_home_url() instead

share|improve this answer
Thank you, worked perfectly! – Desi Mar 21 '14 at 1:13
No problem, glad it worked! – MBL Mar 21 '14 at 1:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.