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
    WordPress Login Logo and Link
    Home » Customize WordPress Login Logo And Link

    Customize WordPress Login Logo And Link

    7 months ago
    WordPress Tutorials
    1–2 minutes
    • Facebook
    • Pinterest
    • X
    • LinkedIn

    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.

    Bloom Email Optin Plugin

    Latest Posts

    functions.php vs Plugin: Why You Should Move Code to a WordPress Plugin

    functions.php vs Plugin: Why You Should Move Code to a WordPress Plugin

    4 weeks ago
    1–2 minutes

    In Part 1, you created your first custom plugin. Now let’s fix a common mistake: putting everything in functions.php. It works at first—but it doesn’t scale. Why functions.php Is Risky The functions.php file is tied to your active theme. That means: This is why sites unexpectedly lose features after a redesign. The Rule to Remember…

    How Do I Create a Custom WordPress Plugin From Scratch?

    How Do I Create a Custom WordPress Plugin From Scratch?

    5 months ago
    3–5 minutes

    If you’re new to WordPress development, creating your own plugin can feel intimidating. It sounds like something only “real developers” do. The truth is much simpler. A WordPress plugin is just organized PHP code with a purpose. And if you’ve ever added code to functions.php, you’re already closer than you think. In this article, I’ll…

    WooPress License Hub: Sell & Manage Multiple WordPress Plugin

    WooPress License Hub: Sell & Manage Multiple WordPress Plugin

    5 months ago
    2–3 minutes

    Purchasing multiple WordPress plugin licenses often becomes frustrating when you rely on separate checkouts, scattered license keys, and manual updates. However, a WooPress plugin license hub simplifies this entire process. Instead of managing licenses individually, you can purchase, assign, and control them from one centralized system. How Can You Purchase Multiple WordPress Plugin Licenses Through…

    Divi WordPress Theme

    Monarch Social Sharing Plugin

    wordpress customizationwordpress login

    Post navigation

    Previous PostImprove Your Site With These Website Design Secrets
    Next PostRemove “via” information from emails – WordPress
    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.