Themes / Design

Plugins / Hacks

Security

SEO

Tutorials

Home » Tutorials

Custom WordPress Login

Submitted on June 7, 2009 – 00:38hr417 views | No Comments Yet...
Custom WordPress Login

An excellent tutorial on how to customise your WordPress Login Screen has been written by Michael Martin over at Pro Blog Design.

And you don't have to worry that you have to redo it all after a WordPress upgrade, because you add the code into your theme files.

The tutorial explains that you start with adding the following 6 lines of code to your functions.php file:

<?php
function custom_login() { 
echo '<link rel="stylesheet" type="text/css" href="' . get_bloginfo('template_directory') . '/custom-login/custom-login.css" />'; 
}
add_action('login_head', 'custom_login');
?>

If your theme doesn't have a functions.php file, you can open notepad, add the lines of code and save it as one.

Then you have to create a new folder in your theme's folder and call it for example custom-login. Inside that folder you create a new stylesheet called custom-login.css.

The only thing left for you to do is to make some funky new CSS rules to give yourself (or your clients) a cool refreshing login!

Alex Denning of Nometech.com made a screencast available on this same subject.

Popularity: 35% [?]

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.