Custom WordPress Login Screen

login1

The WordPress admin login page is very easy to customize. With the code below, you can add your own CSS to the login page and make it look however you like. Check out the new Pro Blog Design login to see it in action.

Best of all, your customizations are all done in your theme files, so the changes will stay when you upgrade WordPress.

This is the first in a series of WordPress Hacks posts. The code is all done by Milo, and then written up into a blog post by me. There will be a new hack released every Thursday!

1 – Edit Functions.php

Your theme may or may not have a functions.php file in it already. If it does, paste the code below into the bottom of it. If not, just create a blank file in Notepad and save it with that name.

And remember not to leave any space before or after the <?php and ?> tags as you do this!

1
2
3
4
5
6
<?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');
?>

2 – Edit Your Theme Files

login-folder We will need a place to store your new CSS styles and any images you might use. Seeing that they aren’t part of the main site, let’s create a new folder for them.

Create a folder in your theme’s folder and call it “custom-login“.

And inside that folder create a new stylesheet called “custom-login.css”.

3 – Add New CSS Rules

The custom-login.css file will be loaded each time your login page is loaded. That means that any rules you add here will be applied to the login page.

If you add new images, you can store them in your custom-login folder.

However, if you want to re-use images from your theme, just use CSS rules like the following to use the image from your theme’s images folder (That way, your browser won’t need to download the images again as it will already have them cached).

1
html {background:#17272d url(../images/pbd-body.jpg) 0 0 repeat-x;}

A Simple Template Example

The following is the stylesheet I’ve used to create my new login form. It is very, very simple, but it does the trick nicely. I’ve commented it, so feel free to adapt it and use it on your own site.

1
2
3
4
5
6
7
8
9
10
11
12
/* Custom Login Styles */
 
html {background:#17272d url(../images/pbd-body.jpg) 0 0 repeat-x;}	/* Page background. Can't use the body tag for this! */
h1 a {	/* Title image (The "WordPress Logo"). Remember to update the height and width your image's dimensions */
background:url(../images/pbd-title.png) 0 0 no-repeat;
width:415px;
height:70px;
} 
 
body.login {border-top-color:#dff4fc;}	/* Top bar background color */
.login p#backtoblog a:link, .login p#backtoblog a:visited {color:#17272d;}	/* Link effects in top bar */
.login p#backtoblog a:hover, .login p#backtoblog a:active {color:#17272d;text-decoration:underline;}	/* Rollover link effects in top bar */

More Advanced Customizations

Of course, you can do a lot more than that. If you check out the screenshot below of a site Milo created for Intellivative, you can see that she’s modified the design of the login form itself, just using a few more CSS rules.

login-intellivative

You may find it useful to check out the default WordPress login stylesheet as well. You will find it in /wp-admin/css/login.css and some of the colors will be set through /wp-admin/css/colors-fresh.css (Unless you changed the color scheme in your admin panel, in which case it is colors-classic.css).

If you update your login form, let us know in the comments and I’ll collect the links here!

Update: Andi Saleh has created a great login page with this technique.

Update 2: Andrea from WPMU Tutorials has turned this into a plugin for all your WPMU users out there!

milo WordPress Hacks Series: The code in these posts was written entirely by Milo, a web designer from Oxford, Britain. Check out her website for free WordPress themes and her blog, or follow her on Twitter!

Share

  1. killer!

  2. Static (3 comments)5 February 09

    Awesome tip. :) Completely forgot that this should be editted too when you’re going fo a real complete look. I wonder if we’ll start seeing more of these little additions in premium WP themes…

  3. Excellent post – will try to implement on my blog, it shows professionalism.
    Thanks for the great tutorial!

    Anthony

  4. Great, indeed…! Thanks for sharing this excellent tip!

    I just updated my login page, making it match the main design. What do you guys think?
    And can someone please let me know if the style breaks is Opera and Safari. I haven’t tested it there yet. :D

    Will be waiting for more great hacks. Keep em coming, guys! :D

  5. This came in a timely manner. I was just looking into this. I wondering if you will do a post or if anyone know how to fully integrate the register and login into the site, such as http://ugaf.org/login/?action=register

  6. Awesome. i lost for words :D

    Keep posting a good post like this guys :D

  7. Thanks for the tips. Hopefully, I can make my blog look as professional as yours

  8. Brilliant! I’ve been wanting to do this for ages and was going to just muddle through it myself, but now I have your well written article for guidance! Thank you!

  9. Thank you very much. This is extremely useful.

  10. Tuan Anh (2 comments)6 February 09

    Thank you for the article. It’s simple but very useful :) . Changing CSS of the login page will make our blog more personal, and usual people don’t reconize this is a WP blog :)

  11. Thanks a lot. This will definitely help when I move to a hosted solution.

    Currently I’m running off of Blogger, and although it is a good service for the price (free!) customization is not exactly top notch.

    I’ll be subscribing to your feed :)

  12. Penny (3 comments)8 February 09

    Awesome tip!

  13. Great tip indeed ! First time i have such a wp mod is possible. And i think it is really good for overall site branding.

  14. Michael Martin (1511 comments)8 February 09

    Glad you all enjoyed the post! I’m agreeing with everyone here, it really does take your site that little extra step towards being fully your own.

    Static,
    We might well do! Any little advantage I suppose. :)

    Andi,
    That looks brilliant, I’ve added the link to the end of the post now. Thanks for sharing!

  15. Penny (3 comments)8 February 09

    @ Andi, the design doesn’t break in Opera. Looking great.

  16. Snake (14 comments)9 February 09

    It looks very nice, i will try to do it =).

    Thanks

  17. Nice tip Michael. Adds a nice finish to a client’s site

  18. huh, looks like – I can do something about it too, thanks for the tips! :)

  19. thats awesome! the steps are easy to follow and appreciated!

  20. ponie325 (1 comments)11 February 09

    great work!
    learning to do it!~~

  21. This is one of those things that you know you’re going to need to know how to do sometime soon and you expect you’ll do a search on Google when the time comes … now I don’t have to! Thanks Michael – this one’s going straight to delicious etc.

  22. Farid Hadi (15 comments)11 February 09

    That’s a great tip! Thanks!

  23. That’s really awsome!
    It’s beneficial for the blog having multiple authors. Do you know about changing the way the user register on the blog?
    Usually WP sends randomly generated password to the users email , sometimes that may be frustating. Is there any way thru which they openly choose their password while registering.
    Please if possible mention that also.
    -Mohit

  24. SEO Preston (3 comments)5 March 09

    We use wordpress for all our website and clients websites, and this is something which we didn’t really bother to do. It’s surprising how much it finishes the website off. Your post is really easy to understand seems very simple and will finish the website perfect.

  25. Ben Lind (2 comments)7 March 09

    Thanks for the really great post! I never knew that you could edit the login page like this – it makes for a nicer user experience, for sure.

    After reading your article, I updated my blog’s login page, which you can see at http://www.tutwow.com/wp-login.php.

    Thanks again!

  26. This is something I’ve been doing for a while on client sites that are running on WordPress. It makes the site look that much more polished.

  27. the12 (2 comments)20 March 09

    Hye Michael, can u look at my login page http://missmully.lovesylph.com/wp-login.php.. something wrong at wp-login.php.
    what must i do?

    “Warning: Cannot modify header information – headers already sent by (output started at /home/lovesylp/public_html/missmully/wp-content/themes/pinkswirls/functions.php:9) in /home/lovesylp/public_html/missmully/wp-login.php on line 255

    Warning: Cannot modify header information – headers already sent by (output started at /home/lovesylp/public_html/missmully/wp-content/themes/pinkswirls/functions.php:9) in /home/lovesylp/public_html/missmully/wp-login.php on line 267″

    • Michael Martin (1511 comments)20 March 09

      Hey,
      The error is probably in your functions.php file. Have you copied the code over completely? (Might have left out a word or 2 at the end somewhere?).

      If you don’t spot anything, email it to me (michael at this site’s address :) ) and I’ll take a look at it just to double check and be certain. I’ve made every error possible with these files in the past! :D

  28. Pablo (1 comments)24 March 09

    Hi,
    I have the same error above as the12 and was wondering if you two had an luck resoling that problem? Thanks!

  29. This is really very nice idea. But if you would like to have a professional website, such solution is not good to you and your company. I hope it is easy to understand why.

  30. quick question.. how do you get the nice stylized “code” areas?

  31. anmari (2 comments)18 April 09

    A correction – you probably should use bloginfo(‘stylesheet_url’), not the template url?

  32. Tadd Mencer (1 comments)12 May 09

    This is stellar! I have a client that will be using WP and this is exactly what I need and want for their log in screen!

    Tadd Mencer’s Latest Post: When life gives you lemons

  33. Great Tutorial… I be using it soon (I hope)

  34. Tracey Grady (14 comments)23 June 09

    I just wanted to note that this works really well if you’re replacing the default WordPress logo image with your own logo image file, but it doesn’t work if you’re using HTML/CSS to create the typography for your h1 header title. In order to make that work you have to make changes in wp-login.php and login.css in the wp-admin folder … but you would probably have to make those changes all over again next time you upgrade WordPress.

    So if you have created your site with a h1 header title using tags and CSS styling, then in order to achieve this customised login page you’ll have to create a separate image file to replicate the header title, then follow Michael’s instructions with your new image file.

    Hope that all makes sense.

  35. Adam (18 comments)10 July 09

    http://www.tripst3r.com/wordpress/wp-login.php
    It is really easy, and works super well. My custom log in link is above!

  36. Dave (17 comments)11 July 09

    Is, there a way to center an image?
    I follwed the code that you have here. but then i turned around and decided to create an html page index.html
    I can see the text fields to enter username / password but the box doesn’t form?

    When, I click on loss password the hacked version that I did from here shows, but the image isn’t the same size what i’d like to do is click on lost password, and the same page from the main page loads up the same way and you can enter your email or user name and you will be sent the password but when I log in, and try to see the main site, it boots me to the login site any reason why? how can I get pass it?

  37. reezluv (1 comments)11 August 09

    really nice and killer tips..great!

  38. Nits (6 comments)2 September 09

    I find some nice article on the website design which infact great help for all webmaster like me.

  39. Nice information xD..Keep share.

  40. I receive functions.php errors when I try to login.
    All I want to do as add a full page background image behind the login area.
    I have tried many different plugins but can’t get this basic thing to happen.

  41. If you customize your login screen to make it match your site better I would advise anyone to also customize the login url to something other that wp-login for security reasons. There is even a plugin out right now that is call WP Hide Dashboard that can also help manage what you show people that you allow access to your backend as well.

  42. Thanks for the informative article on WordPress custom theme

  43. This is a great article and really useful, the only problem is left is that if you change the logo to your own logo, the logo still links to wordpress.org

    Any ideas on how you can overide?

  44. Hans (17 comments)5 November 09

    so expert for me, but, i will try for that… nice tutorial, BeD-BoY

  45. This is something that I never considered possible until I just stumbled upon this article. Great tutorial and thank you very much for showing me this.

  46. Andre (3 comments)19 November 09

    Great tip, this is just what I was looking for!

    Thanks,

  47. al (11 comments)21 November 09

    I tried it and i just got a blank screen. Then I took out all the code now when I try to log out I get a blank white screen. please help
    this is my site http://www.cac-tv.com
    Thanks!

    • al (11 comments)21 November 09

      This is really bad can you tell me how to get my login page to work again?

  48. Rosario (12 comments)1 December 09

    Thanks for the really great post :D

  49. Pete (2 comments)11 December 09

    ahhh.. I copied/pasted the first bit of css at the end of my functions.php… and it completely destroyed everything… I can’t log in… I can’t view the blog… nothing……. this is the error i receive when I go to my site:

    “Parse error: syntax error, unexpected $end in /home/nctrnlk1/public_html/blog/wp-content/themes/atlantica/functions.php on line 130″

    please HELP!

  50. Splashbox is an online marketing company with 20 years industry experience. We specialise in Search Engine Optimisation (SEO), online marketing and website design. Our team is made up of successful, business-minded individuals who are passionate about design and understand the importance of achieving a strong market presence and providing a sound return on investment. Our strong business acumen will always find a balance between eye-catching designs, cost-effective and profitable solutions.

  51. wow! thanks for the idea. Ill try to modify my wp login too. hehehe. :)

  52. spartax (1 comments)17 December 09

    nice tutorial,, thanks for the directions.. :) ,

  53. So, what happens when you update WordPress to a new version? Do you have to redo the work each time?

  54. Adam (18 comments)18 December 09

    The problem is that often after update wp version our changes may not work. There is plugin – register plus – has also posibility to change login screen.

  55. Thanks for sharing the helpful tip.

  56. pgb (2 comments)25 December 09

    Thanks for the article. All visitors are sent to the login page while we still develop the site but here’s our login page: http://pinoygossipboy.ph/wp-login.php .

  57. I will tried it on my site… this is great custom, specially for multiple author blogs.

  58. jss (1 comments)2 January 10

    hey, it’s cool!
    please tell me how to completly remowe the top bar (“<- Back to [blogname]")

    • Hey JSS, I think pgb used this code in his site:

      .login p#backtoblog a:link, .login p#backtoblog a:visited {
      display:none;
      }

      now that won’t “completely remove” the link, but just hide it in plain view. Meaning you can still see the element if you view the page source.

      -Joe

    • pgb (2 comments)18 June 10

      Yeah that’s what I did.

  59. Get article. Thanks for sharing the info. I want to take this a bit further. When someone logs in I want them to be redirected to a specific URL. I found one plugin that does that, but as soon as you go back to the /wp-admin.php page it does not redirect you. Any ideas how to make that happen? Basically I want “clients” to login and be redirected to a page I set up for them. Each client has a separate page.

  60. zplits (1 comments)12 January 10

    My comment was deleted.

    • Only comments that look like spam get deleted, and I even go through the whole lists of comments automatically listed as spam.

      Sorry if your comment was caught up in that. Feel free to repost if you were asking a question or adding an opinion to the post! :)

  61. Naveen (1 comments)17 January 10

    Hello

    I did everything you recommended and it still does not work?

    I have WordPress 2.9.1.

    Naveen

  62. Thanks for all your work on this. It was nice to learn how to do this without a plugin.

  63. Juri (1 comments)3 February 10

    Brilliant! Thanks!

  64. sandeep (4 comments)9 February 10

    good article :)

  65. Another killer tutorial Michael . You amazing .

  66. Nicole (4 comments)13 February 10

    That’s a great tutorial, but I get this “Warning: Cannot modify header information – headers already sent by”, too. There’s nothing wrong with my functions php file. Did anyone find a solution for that problem?

    • Sorry Nicole, I’m using this exact same code on the same WP version as you and it’s working for me.

      Given the error there, is there a chance you’ve added another function somewhere with the same name? (Or that a plugin you’ve added has done so?)

  67. Lena (1 comments)21 February 10

    Thanks for sharing.. ^^
    *-*

    hello from Brasil

  68. Even log in page is not shown to the visitors and it is important to them. It is still a cool thing to design it, for your own happiness that you have a great design. Thanks for sharing this information.

  69. Oscar (1 comments)6 March 10

    hello i ust wnted to ask a quick question where would i enter this coding because i am using ix as my web hosting and i am a little puzzled as to where i out this code in. can someone help me please

    thanks

    Oscar

  70. JimCook (1 comments)9 March 10

    its like what i want, thanks to michael..

    http://www.jurusinternetmarketing.com/wp-login.php

    hello from indonesia ;)

  71. great for wordpress rebranding!

  72. garrett (3 comments)16 March 10

    thank you very much!

    here’s my new login page!

    http://marketinglistinfo.com/w.....-login.php

  73. fenny (2 comments)17 March 10

    wow,, its pretty cool! i’ll try it,, so any thx!!!! :)

  74. SEO Copy (1 comments)21 March 10

    Really got to give this a go as it looks very professional for end clients and adds to the branding for customer sites – so looks like you have thought of everyting for them. Thanks for sharing this tip!

  75. Leslie Ardinger (1 comments)22 March 10

    I apologize first! I am such a newbie to customizing my blog, but continue to work very hard! I added your code to the bottom of my functions.php file. I created the folder ‘custom-login’ and created the css file ‘custom-login.css’. My gut feeling is that I need to do something else like tell WordPress that I am using a whole new login page. Is this done in the function? Any help will be greatly appreciated! Thank you!

    • Actually I tried this on a fresh WordPress install today, and it doesn’t appear to make any difference. It is running BuddyPress too, but I don’t know if that should make a difference. I’ll try it with BuddyPress disabled and report back…

  76. Awesome tut! Been using it as a reference for any clients’ WP site I do. Thanks!

  77. Chasen (1 comments)25 March 10

    It seems to work at the wp-login.php page, but it breaks the wp-admin (white screen). This only occurs when I add that snippet of code to the functions.php page. Here is the code I cut-pasted

    <?php
    function custom_login() {
    echo '’;
    }
    add_action(‘login_head’, ‘custom_login’);
    ?>

    Did I miss copying anything? I am also using 2.92 so this may be the glaring issue…

    Thanks for this tut!

  78. Ellen (2 comments)25 March 10

    Thanks for this great tut :-) It works awesome on all my WP-sites and I am using it as a professional extra on any client site I built too. Great work :-)

  79. Huw (1 comments)1 April 10

    Hi,
    I have tried this on local machine and it works great – when copying the files over to the live site, nothing changes at all!!??

    Please could someone help me with this?

    Thanks

  80. Hey Michael,

    You mention in your post that:

    “You may find it useful to check out the default WordPress login stylesheet as well. You will find it in /wp-admin/css/login.css and some of the colors will be set through /wp-admin/css/colors-fresh.css”

    The following files have a nicer format (i.e. – they are easier to read) for anyone using wordpad as their text editor because they contain line breaks rather than just a single line of code:

    /wp-admin/css/login.dev
    /wp-admin/css/colors-fresh.dev

    Thanks for the great post!

  81. John Blalock (1 comments)14 April 10

    To all receiving the “Warning: Cannot modify header information…” errors:

    I received this as well when I first used this code because I pasted it directly into the functions.php file via the WordPress editor. I fixed it by downloading the functions.php file, opening it in Textpad, re-pasting it again there in order to ensure no spaces were present (sometimes they get hidden even though it looks fine) and then re-uploading the file to my WP theme directory.

    Hopefully that’s helpful.

    Thanks for the code, Michael!

    • Michael Martin (1511 comments)14 April 10

      Thanks for the tip John, that explains a lot! I never use the built-in editor just because it can make such a mess of the actual files when you next edit them in a normal text editor :(

    • First I copy pasted the code in fucntions.php and got the same header erroe just like others. I removed the spaces my moving the cursor one by one and it got fixed. In this line : echo ”; there is a space before get_bloginfo and there is a space after (‘template_directory’) If both these spaces are removed the problem gets solved.

      I have made a simple login screen. Check Webfroze.com Thanks for the nice post.

      • Michael Martin (1511 comments)9 July 10

        Looks sharp Mukundan, nice work!

        Thanks for letting me know about the spaces, I’ve taken them out now. I hate leaving nice code to the mercy of the WordPress text editor… :(

  82. John (8 comments)17 April 10

    OK for starters I’m very new to this whole blogging thing and I have followed the directions to the best of my ability. Now here’s my problem…

    I get a blank (white) screen for my blog this happened after I copied and pasted the code that was given in step 1. I copied it at the end of the functions.php and updated the code, and boom one big white screen for log in and my whole site. PLEASE HELP!!!! I am using the most up to date wordpress.

  83. This is really a great tutorial. I’ve also seen the log in form of problogdesign, it is really customized. Great idea.

  84. Niaomi (1 comments)27 April 10

    Oh, I can’t get this to work. My site continues to load the default login screen. The wordpress theme I’m using already has a function.php I’ve tried to simply paste the full code at the bottom but it doesn’t work. I get default login.

    I’ve also tried to paste it into my functions.php with the tags because they’re already there.

    Please help, thanks!

  85. Olivier S (1 comments)28 April 10

    Hi,

    i would like to move the login form up and right in the page any idea of what changing. I tried in the original login.css… But i can only reduc the form or make it large…

    Thx

  86. Website Design & Development and Web Promotion Software Design System help your businesses to get online, increase your sales, rank high on search engines, and increase traffic to their websites.Web marketing is fast becoming the best way for companies around the globe to develop business and generate sales.
    Software Design System has the expertise to deliver a structured Internet marketing strategy tailored to your company’s precise needs and designed to deliver you more customers

  87. Barron (1 comments)24 May 10

    I am new to the WP world after hearing and reading about it for a couple years, is there a way to force someone to register before posting and still have the admin approve the ad ??Is there

  88. Marshall (2 comments)26 May 10

    Thanks for the tutorial….

  89. Marshall (2 comments)26 May 10

    I was unable to find author’s name when i posted first comment.
    I have it now……………

    ………..THANKS A LOT MICHAEL :)

  90. Stephan (1 comments)26 May 10

    Hello,

    I also found a site with describes how you can easily hook into the wordpress logo link & linktitle.


    function collage_custom_login_link($url)
    {
    // Return a url; in this case the homepage url of wordpress
    return get_bloginfo('url');
    }
    function collage_custom_login_title($message)
    {
    // Return title text for the logo to replace 'wordpress'; in this case, the blog name.
    return get_bloginfo('name');
    }
    add_filter("login_headerurl","collage_custom_login_link");
    add_filter("login_headertitle","collage_custom_login_title");

    lets you edit the logo link. You use css to change the logo itself.

  91. Syafiq Zainal (2 comments)30 May 10

    Thank you so so so much :)
    This is superbly awesome tips.. hoho

  92. KAV (1 comments)31 May 10

    Thanks a lot! I’ve done a login screen for Airplane Theme (http://www.wptown.com/) . If anybody is interested in it, CSS file is there: http://el-13-06.iet.su/wp-cont.....-login.css and login page: http://el-13-06.iet.su/wp-login.php

  93. Tosh (1 comments)1 June 10

    Here is my custom wp-login.php Thanks for the great tutorial!

    http://www.PS3Blog.net/wp-login.php

  94. Ningbo Hotels (2 comments)2 June 10

    Thanks a lot Michael for such a useful article!!!
    I had already replaced my login logo image but was too lazy to go further and shape it a bit better.
    With the tip concerning the CSS and the awesome logo page of Tosh (PS3Blog.net), I’m definitely going to reshape my page :-)
    Keep up the good work!
    Roger

  95. Jeff Freeman (1 comments)10 June 10

    I too was having trouble with an error with the headers. I originally pasted the code at the bottom of the functions.php file and it had thrown errors. I then removed the ?> and also the <?php so that I had one large php code snippet as opposed to two on the page, uploaded it and it seemed to work.

    Hope this helps!

  96. Rolltore (2 comments)13 June 10

    Awesome tutorial

  97. David (23 comments)22 June 10

    Great tutorial. Complete and easy to understand, even for a newb like me.

    I made a custom page at http://galleryd.net/wp-login I’m pretty excited about, although it took some tweaking and I’m not completely satisfied with the functionality.

    • David (23 comments)10 July 10

      I got my login page looking pretty much like I want, after doing some tinkering with where to best insert my images and how to offset elements and so forth. My only problem (that I know of ) is when the login page is pulled up within an iphone browser, part of the login form is cropped off of the left side of the page and it is not possible to scroll left and access it. To get my page background and then core graphic to show up right, I used this code:

      /* This is for the page background /*
      html {background:url(images/background/fat_lines_mid.gif) 0 0;}

      /* This is for the torn paper and title graphic /*
      body {
      background:url(images/loginD.gif) no-repeat 0 0;
      background-position:center;
      margin-left:auto;
      margin-right:auto;
      display:block;
      width:auto;
      }

      /*This is to properly offset the actual login form from my center graphic (described above) */
      #login {
      background:transparent;
      position:relative;
      display:block;
      margin-right:47%;
      margin-left:auto;
      margin-top:255px;
      }

      #login form {
      background:url(images/background/metal-brushedlight.jpg);
      background-attachment:scroll;
      border:0;
      }

      The full CSS is available here:
      http://galleryd.net/wp-content...../login.css

      Any tips are welcome.

  98. Nikolas (1 comments)2 July 10

    Very nice tutorial! Thank you very much! :)

  99. technology (4 comments)12 July 10

    Awesome. i lost for words :D

    Keep posting a good post like this guys

  100. Jt Hollister (1 comments)12 July 10

    Hey, great tutorial! I’m using it on my new website.

    Is there a way to get rid of the link to wordpress? I don’t mind giving them credit in a link at the bottom or something instead, but this is my logo now!

  101. prajith (1 comments)15 July 10

    thanks for sharing. great tutorial!

  102. eJobsViet (2 comments)16 July 10

    Excellent article

    Thanks a lot

  103. joe (9 comments)19 July 10

    I’m curious as to why you’d create a post with some code we need to paste in a file, that actually doesn’t work. Why waste our time with this. Numerous people have left comments about this code producing a blank white screen after it’s uploaded. Why can’t you just update the code knowing there is a problem with it. Every person who comes to this post seeking a solution will waste their time as I have. What’s the correct code????

  104. Paula (17 comments)23 July 10

    this works really well if you’re replacing the default WordPress logo image with your own logo image file, but it doesn’t work if you’re using HTML/CSS to create the typography for your h1 header title

  105. reat looking theme and nice and simple!

  106. Namila (12 comments)13 August 10

    thankz.

  107. Thanks for posting this tutorial. I have been looking for this info for a long time. Well done!

  108. Joel (4 comments)15 August 10

    Hey Michael,
    I’m trying to do a simple customization of a login screen and I’m using this tutorial as a guide. All I really want to do is get a background image to repeat on my login page. Your tutorial also showed me how to change the wordpress logo to be larger than the default one(thanks).
    Anyway, I used your css code example and altered it with my image information.
    Here’s what I have: (I know I’ll probably need to change the repeat-x to just a repeat to get my image to repeat in both directions, but I just want to get it to show up without altering your code too much first.

    /* Custom Login Styles */
     
    html {background:#002653 url(../images/BSFD_BlueBackgroundSquare.png) 0 0 repeat-x;} /* Page background. Can’t use the body tag for this! */
    h1 a { /* Title image (The “WordPress Logo”). Remember to update the height and width your image’s dimensions */
    background:url(../images/bsfd_login-logo.png) 0 0 no-repeat;
    width:500px;
    height:136px;
    }
     
    body.login {border-top-color:#dff4fc;} /* Top bar background color */
    .login p#backtoblog a:link, .login p#backtoblog a:visited {color:#17272d;} /* Link effects in top bar */
    .login p#backtoblog a:hover, .login p#backtoblog a:active {color:#17272d;text-decoration:underline;} /* Rollover link effects in top bar */

    The custom logo (bsfd_login-logo.png) is working fine, but my background image (BSFD_BlueBackgroundSquare.png) is not showing up on my login page and the background color doesn’t appear to be working either (not that I’ll need it once my repeating image shows up). I have both logos in the images folder for my theme (suffusion). I am using Worpress version 3.0.1.

    Here is a link to my login page http://bsfd.org/schedule/wp-login.php.

    Do you see anything wrong with my code? I’m not a css expert by any means. Any help you could offer would be great!
    Thanks in advance.
    Joel.

Leave a Comment

Your reply will be added to the comment above (Below any other replies to this comment) -

(We DoFollow)

Not sure how to get an image with your comment?