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
  • Resources
    • Coupons & Discounts
  • Blog
  • Contact Us
  • Account
    0
    WordPress Login Logo and Link
    Home » Customize WordPress Login Logo And Link

    Customize WordPress Login Logo And Link

    5 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.

    Latest Posts

    How Do I Create a Custom WordPress Plugin From Scratch?

    How Do I Create a Custom WordPress Plugin From Scratch?

    3 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…

    WooPress License Hub: Sell & Manage Multiple WordPress Plugin

    WooPress License Hub: Sell & Manage Multiple WordPress Plugin

    3 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…

    Drag & Drop File Uploads for Elementor Form

    Drag & Drop File Uploads for Elementor Form

    3 months ago
    2–3 minutes

    An Elementor form file upload allows users to submit documents, images, or PDFs directly through your website forms. Whether you’re collecting applications, contact attachments, or…

    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.
    Pay securely with PayPal

    Secure payments powered by PayPal