---
title: Replace WordPress Login Logo With Your Site's Name and Link
date: 2011-02-28T09:38:32+00:00
modified: 2011-02-28T09:39:20+00:00
image:: https://kaspars.net/wp-content/uploads/2011/02/wordpress-custom-login-logo.png
permalink: https://kaspars.net/blog/replace-login-logo-with-site-name-link
post_type: post
author:
  name: Kaspars
  avatar: https://reverse.kaspars.net/gravatar/avatar/92bfcd3a8c3a21a033a6484d32c25a40b113ec6891f674336081513d5c98ef76?s=96&d=mm&r=g
category:
  - Development
post_tag:
  - How to
---

# Replace WordPress Login Logo With Your Site’s Name and Link

There are [several plugins](http://wordpress.org/extend/plugins/tags/logo) out there that allow you to replace the WordPress logo on the login screen. Here is a simple way to replace that logo with your site’s name — place this in your theme’s `functions.php`:

```
add_filter('login_headerurl', 'my_login_url_local');
function my_login_url_local() {
	return get_bloginfo('url');
}

add_filter('login_headertitle', 'my_login_title_attr');
function my_login_title_attr() {
	return esc_attr(get_bloginfo('name'));
}

add_action('login_head', 'my_style_site_name');
function my_style_site_name() {
?>
	<style type="text/css">
	h1 a { width:auto; height:auto; text-indent:0; overflow:visible; text-decoration:none; color:#666; display:block; margin:0; padding:0 10px; background:none; }
	h1 a:hover { color:#000; background:none; }
	h1 { font-family:'helvetica neue', arial, sans-serif; font-weight:bold; text-align:center; font-size:2em; width:310px; position:relative; right:-8px; margin:0 0 1em 0; }
	</style>
<?php
}
```

Here is how it will look:

![](https://kaspars.net/wp-content/uploads/2011/02/wordpress-custom-login-logo.png?strip=all&quality=90&resize=500,435 "Custom WordPress Login Name and Link (URL)")