Change WordPress Login Logo And Logo URL and Logo Hover Title

Blog

How Can We Change The Login Logo And Login Logo URL And Logo Hover Title?

Default login page in WordPress is https://yoursiteurl/wp-login.php

It contains WordPress logo and on clicking on logo it will take you to the WordPress official site “https://wordpress.org”

As shown in the screenshot below:
Change WordPress Login Logo And Logo URL and Logo Hover Title – screenshot 1

All three default WordPress Logo ,Url And Hover title can changed using 3 hooks/filter.

  1. ‘login_enqueue_scripts’ Hook
  2. ‘login_headerurl’ Filter
  3. ‘login_headertitle’ Filter

WordPress logo is shown as background image in link. so we can change it using css only.
But CSS applied in theme’s style.css will not applied on “wp-login.php”. WordPress Provide ‘login_enqueue_scripts’ hook for applying JavaScript and CSS for “wp-login.php” page.

How To Change Defualt WordPress Logo?

Paste this code to your theme’s functions.php for changing logo.

function ChangeLogo() { ?>
  <style type="text/css">
    .login h1 a {
      background-image: url(logo.jpg) !important;
      background-size: 100% !important;
      float: left;
      width: 100% !important;
    }
  </style>
<?php }
add_action('login_enqueue_scripts','ChangeLogo');

How To Change Defualt Login Logo Url?

For Changing Link of Logo we need to use ‘login_headerurl’ filter.

Custum Url

function LoginUrl() { 
  return 'https://example.com';
}
add_filter('login_headerurl','LoginUrl'); 

Site Url

function LoginUrl() { 
  return home_url();
}
add_filter('login_headerurl','LoginUrl'); 

How To Change Defualt Login Logo Hover title?

For Changing hover title of Logo we need to use ‘login_headertitle’ filter.

function LoginTitle() { 
  return get_option( 'blogname' ); 
}
add_filter('login_headertitle','LoginTitle'); 
null

Related reading:

Shiv Kumawat

Executive Director & CEO

Shiv Kumawat is the CEO of Eoxys IT Solution LLP, the Jaipur-based IT company he has led since 2009. An AI & IT Solutions Consultant with 16+ years of experience, he works with startups and enterprises to turn ideas into market-ready SaaS platforms, mobile apps and AI-driven solutions. His team has delivered 700+ projects across SaaS, mobile and web apps, automation and AI. He previously served as Chief Technology Officer for a US company.

Latest Posts

An AI agent sending trace spans for each model call and tool step to an observability dashboard

AI Agent Observability: How to Trace and Debug Your Agents

On 14 October 2026, Anthropic announced OpenTelemetry tracing for agents built on the Claude Platform, so every agent turn, model…

Shafeeq Khan
October 15, 2026
Isometric illustration of an AI-powered fintech app connected to payment cards, a security shield, an AI chip and a verified AI agent payment token

AI for Fintech Apps: Use Cases, Guardrails and What to Build

On 13 October 2026, American Express published a framework to stop AI agents from making purchases a customer never approved,…

Shafeeq Khan
October 14, 2026
Isometric illustration of an AI agent robot connected to a calculator, coin stacks and cloud APIs, showing the cost to build an AI agent

How Much Does It Cost to Build an AI Agent in 2026?

Ask ten agencies about the cost to build an AI agent and you will get ten different numbers. The answer…

Shafeeq Khan
October 13, 2026
,

Leave a Reply

Your email address will not be published. Required fields are marked *