Beginner's Guide for WordPress - Start your WordPress Blog in minutes.
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
WordPress Plugins
View all Guides


  1. sohail says:

    done that on my site, i do not know why wp place link in this way and dont give any option to edit it, in Googles guidlines this is not fair

  2. Tim Nicholson says:

    I’d do this instead. It doesn’t require hard-coding anything and also updates the link title, which means when you hover over the logo, it shows your site name and description. I haven’t figured out how to easily replace the WordPress logo with my own, though. That looks like it will require CSS to do it (since they use CSS to add it in the first place rather than a PHP function call).

    * Change the login page icon and URL to our site instead of
    add_filter( ‘login_headerurl’, ‘xs_login_headerurl’ );
    function xs_login_headerurl( $url ) {
    return esc_url( home_url( ‘/’ ) );
    add_filter( ‘login_headertitle’, ‘xs_login_headertitle’ );
    function xs_login_headertitle( $title ) {
    return get_bloginfo ( ‘name’ ) . ‘ – ‘ . get_bloginfo ( ‘description’ );

  3. Luis says:

    Thank you!! very usefull tip!

  4. Andy says:

    That’s great! Thank You! Is there a way to change the rollover? When I rollover my custom logo on the login page (that now links back to my site) a highlighted text box appears and says “powered by WordPress.” is there away to change that message or delete it?

  5. wpbeginner says:

    @ReyCalantaol You only need to change the return value… not the $url … leave $url as is.

  6. ReyCalantaol says:

    The $url parameter for custom_loginlogo_url is the actual path for the logo image?

  7. Wesleyvdbunder says:

    @btfb You have to paste it at the end of the functions.php file.

  8. btfb says:

    Where to add the code in functions.php

  9. creativeBill says:

    @MariAdkins anytime

  10. MariAdkins says:

    @creativeBill COOOOOLLL thanks

  11. creativeBill says:

    @MariAdkins – check out the white-label-cms plugin. It allows you to change logo and url of login page, also footer & header of backend

  12. MariAdkins says:

    @creativeBill i didn’t know you could customize the login page. that’s sweet. :)

  13. shailan says:

    @wpbeginner@shailan Oh sorry i thought it was login url, Login URL is what i needed. I see no typo now? Probably be your syntax highlighter playing tricks on me :)

  14. wpbeginner says:

    @shailan Don’t really understand what you mean by including the login form in that url….Also where is the typo?

  15. wpbeginner says:

    @shailan Don’t really understand what you mean by including the login form in that url….Also where is the typo?

  16. shailan says:

    Cool trick! But i should also include a login form in that url right?

    Ps. You have a typo in the code.

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.