How to Change Admin Login Logo Image In WordPress


Hi Friends, In this article I am going to explain you that How we can change admin login screen logo image in WordPress. May be you can get many plugins to change admin login screen but I always prefer doing code instead of using plugins for everything, and it is really very easy code to change admin logo of admin login screen.

WordPress providing many action hooks to change functionality of WordPress without changing core files So here we will use action hook ‘login_head’ by which we can change admin login logo image. Below is function by which we can change admin login logo :

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;

So in above code you can see we use ‘login_head’ action hook and then one CSS block to override current login logo image. Upload your login logo image in wp-content/themes/[current_theme]/images/ and then replace image name ‘logo-login.gif’ with your logo image name. Now put this above code in functions.php file of your theme and then check your admin login screen.

Voila!!! You can see your admin login WordPress logo has changed to your login logo.

I hope this post helpful for someone. If you have any question then you can ask me anytime or post it in comment.

Also I am WordPress Developer, Freelance PHP Developer having more than 3 years of experience, So if you want to do any projects then you can contact me.

Hostgator Hosting in 1 Cent Coupon Code – “1CENTHECOUPON” (Without Quotes).