Top

Daily Tip: How to Customize Your WordPress Login Logo in Under a Minute

August 30, 2010

A customized WordPress login is a nice touch to any site, especially if you’re making it for someone other than yourself. There should be no need to install a plugin to do this for you. In order to keep your site lean, you’ll want to avoid adding loads of plugins that do little things like this.

Here’s how you can customize your WordPress login with your own logo in under a minute. Simply add this to your theme’s functions.php file:

function my_custom_login_logo() {
echo '<style type="text/css">
h1 a { background-image:url('.get_bloginfo('template_directory').'/images/logo.png) !important; }
</style>';
}
add_action('login_head', 'my_custom_login_logo');

Replace the logo.png with your filename and make sure to drop the file in your theme’s images directory.

Tweet This Post

Comments

Got something to say?

Bottom
Article Archive  |  This site is a historical archive of pressography.com, a WordPress plugin and theme blog that published between 2006 and 2012. It is preserved for reference and is not operated by, affiliated with, or endorsed by its original authors. Nothing here is for sale and no form on this site is active. If you are the original owner and would like this domain returned, please get in touch.