Skip to content
ZIORWeb.Dev Logo

Your WordPress development partner

  • Plugins
    • WooPress License Hub
    • Local Business Schema Pro
    • Easy DragDrop File Uploader Pro
    • Easy DragDrop File Uploader
  • Documentation
    • WooPress License Hub
    • Local Business Schema Pro
    • Easy File Uploader Pro
  • Blog
  • About Us
  • Contact Us
  • Account
    0

    Tag: wordpress login

    Customize WordPress Login Logo And Link

    Customize WordPress Login Logo And Link

    November 5, 2022October 28, 2025 by Yanniin WordPress Tutorials

    You may find a plugin for this, but I tell you a good is, it does not need a plugin to do this. WordPress has built-in hook that can be use to make this happen. I my self do not always sort into installing plugin for the simple thing that you want to do with your site.

    To change the logo, go to your the theme folder you are currently using and look for the function.php file copy and paste the following code:

    add_action("login_head", "my_login_head");
    function my_login_head() {
    	echo "
    	<style>
    	body.login #login h1 a {
    		background: url('image url') no-repeat scroll center top transparent;
    	}
    	</style>
    	";
    }

    The above few lines of code will do the magic.

    Please note that the default size of the logo is 80×80 pixel. If your logo is in different size you can add the following CSS definition:

    height: your height;
    width: your width;
    -webkit-background-size: your width your height;
    background-size: your width your height;

    You final code will look like this:

    add_action("login_head", "my_login_head");
    function my_login_head() {
    	echo "
    	<style>
    	body.login #login h1 a {
    		background: url('/wp-content/themes/directorys/images/allaboutiligan-icon.png') no-repeat scroll center top transparent;
    		height: your height;
    		width: your width;
    		-webkit-background-size: your width your height;
    		background-size: your width your height;
    	}
    	</style>
    	";
    }

    Changing logo title and logo link url:

    function loginpage_custom_link() {
    	return home_url();
    }
    add_filter('login_headerurl','loginpage_custom_link');
    
    function change_title_on_logo() {
    	return get_bloginfo('name');
    }
    add_filter('login_headertitle', 'change_title_on_logo');

    That’s all! Hope this helps.

    ZIORWeb.Dev Logo Main

    Since 2011, ZIORWeb.Dev has specialized in WordPress development, creating custom plugins and themes that empower businesses and creators.

    • Facebook
    • X
    • GitHub
    • Upwork
    • LinkedIn
    • WordPress

    Explore

    • Plugins
    • Documentation
    • Learning Hub
    • About Us
    • Terms and Conditions
    • Privacy Policy

    Featured Plugins

    • Local Business Schema Pro Local Business Schema Pro
      $49.00 / year
    • WorPress License Hub Main WooPress License Hub
      $79.00 / year
    • Easy Dragdrop File Uploader Pro Main Easy DragDrop File Uploader Pro
      $39.00 / year
    Trustpilot
    ZIORWeb.Dev | WordPress Development & Plugin Solutions © 2026. All Rights Reserved.