Support » Fixing WordPress » How to change the WordPress login page logo link

Viewing 9 replies - 1 through 9 (of 9 total)
  • esmi


    Forum Moderator


    Thanks, but I was looking for a code, eliminating the use of a plugin. I know there are lots of plugin which does the job. For me they are too much , or adds up more unwanted functions



    Forum Moderator

    That’s not possible without editing core – which isn’t recommended.



    All you need to to do is save an image called wp-logo.png and replace the existing in wp-admin/images.

    You’ll need to replace it after every update.

    But you see, I’m already using some code in the functions.php to change the login page logo. So I was wondering if there is any such code to change the link of the logo.

    This is the code I’m using right now. But this only changes the logo, not the link.

    add_action("login_head", "my_login_head");
    function my_login_head() {
    	echo "
    	body.login #login h1 a {
    		background: url('".get_bloginfo('template_url')."/images/logo-login.gif') no-repeat scroll center top transparent;
    		height: 90px;
    		width: 400px;

    this is the code:

    function loginpage_custom_link() {
    	return '';

    and this one will change the tooltip when you rollover the logo:

    function change_title_on_logo() {
    	return 'My Tooltip';
    add_filter('login_headertitle', 'change_title_on_logo');


    Thanks for the quick reply and I tried it and it works!


    Thanks again

    cool, srj 🙂

    @forum moderators
    does anybody has permissions to edit other’s posts?
    my previous post in this thread has been edited, and not by me.

    i said Esmi shouldn’t categorically say something is not possible if not sure/not know
    it wasn’t an ad hominen attack nor lacking politeness

    if someone can edit my posts, probably they can be deleted too…

    let’s what happens with this one…

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How to change the WordPress login page logo link’ is closed to new replies.