Home/ Journal Bens Projects Binary Moon Archives About Ben Gillbanks Subscribe to Binary Moon updates

Subscribe to Binary Moon website updates, it's free and easy to stay in touch

Search Binary Moon

Search Binary Moon

WordPress Tips and Tricks – Custom Login Page

It's cool to have the WordPress login page customized to fit your own website branding. This is even more significant for multi author blogs, or sites you have set up for clients as it adds that little extra something.

Since writing this post in 2007 I have released a plugin called BM Custom Login which does everything described below

I was actually inspired to write this post because of a 9rules note I started. David Airey beat me to the punch with his own version and credit should go to Ayushsaran for starting the thing but here is mine at last.

The process is very simple. Create two images (login-bkg-tile.gif and login-bkg-bottom.gif) and then stick them in the wp-admin/images/ folder from your WordPress installation. With a bit of effort you can create something nice.

The problem with this is two-fold, first how do you create the images? Secondly what happens when you upgrade?

Wordpress Custom Login screen samples

How do you create the images?

This isn't overly challenging. All you need to do is make a picture based on the default template. But wouldn't it be nice if there was a template file you could base your image on? It would save so much time!

You'll also need to create a new footer image... but I've solved that problem too.

What happens when you upgrade?

One of the things I have tried to do with my WordPress tips and tricks is stick to things that don't require changing core files. I don't like the idea of having to change things every time I upgrade the software, and in this case the images will get overwritten when you install new versions of the software.

The Solution? Ben to the rescue!

Ok, so it's not the most complicated of problems, or solutions for that matter, but I have an answer to both.

The image template was easy... I made one.

The upgrade issue was a little more challenging, and took me about 10 minutes longer to put into action. I give to you, my first WordPress plugin (and how useful it is), the Binary Moon Custom Login plugin - as seen in action on the Binary Joy login screen.

The plugin itself sits in the plugins folder alongside the images - which you can change as required. The footer image has been changed to a gif with a transparent middle which means you can use any images you like for the main background and they will fit seamlessly.

Because this is a plugin and the images are kept separately from the admin folder upgrades are nice and easy. Just upgrade as normal. This is particularly handy for client sites where they may not be aware of what you have done to customise things.

Let me know what you think.

323 Responses to “WordPress Tips and Tricks – Custom Login Page” Leave a reply ›

  • Thanks for this nice plugin. It allows a bit of professionalism to the login screen.

  • Hi
    1. How do you change the button colour on the screen. I changed your 2 screen files colour to purple yet the button is still wordpress blue. So is there a button template to change.
    2. How do you change the button itself. The button you showed on all the examples is not the WP2.5.1 button that appears on my login form. It is the same button I had before.
    Hope you can help. Thanks so much.

  • Thanks for the plugin, very useful.

    You've also got a really nice site design.

  • Same here with the latsest version of WP...they don't use the gif's anymore that are in that folder. You can change manually by changing the css file in the admin/css/logincss folder

  • @Dave - the latest version works with Wordpress 2.5

  • Hey Ben,
    Love the idea, but can't seem to get it to work with WP 2.5. Do you know of any plugin conflicts? In other words, I have, say, Register Plus, which allows me to change the header image, but not alter the design in other ways (though if I disable this plugin, I still have the same issues). It seems like this version of WP has an entirely different login screen than prior versions which feature the rounded-corner look. Therefore, this BM plugin doesn't seem to fit in the allotted space. Anyone else finding this to be a problem? @Ben: ideas?

  • I am still curious about the button. Why is there no button in your plugin. As I mentioned on 3 July - the button is the default blue button from worpress 2.5.1. Kerry Webster says I need to use a button from another plugin (branded) called fade-button.png. I'm not sure why and not really sure how to use it in your plugin. Hope you can help. Thanks.

  • Vanesa - I have no idea about the problem you're seeing. There should be a button. The only suggestion I have is to make sure you're using the latest version of the plugin and that no other plugins conflict with it (I would try disabling them one at a time until it shows)

  • Emily - I am no aware of any conflicts. The plugin is very simple. That said it wouldn't surprise me if something went wrong somewhere.

  • Hi Ben, Yes there is a button the default wordpress 2.5.1 button not a button from your files. I have the latest version of your plugin bm-custom-login version 1.3. There is no button file in our files. I have deactivated my plugin. I downloaded your plugin again and installed it. Again there is no button from your plugin just the blue default button from wp 2.5.1. Maybe you could email me the button file as there definitely is not one in the plugin. Thanks so much.

  • Hi, the plugin works really great!!
    However I also have a sidebar login widget installed and the white text was not showing on the front page with white background (it was fine on the login page because my background was orange). So I guess the sidebar widget was using the same css file, so how can I differentiate that?

  • Venesa - do you have a page I can look at to see the problem? There is no button file in the plugin - I don't change the style of the buttons so you will use the default wordpress button style (this changed between wp2.3 and wp2.5)

    Barbara - that's another strange problem. I would never even have considered using the login box as a widget - and if I did I wouldn't use the css from the login page. Do you have a url I can have a look at?

  • Hi Ben, thanks for the quick reply, please check my construction site http://www.jingyung.com it's in Chinese. The login widget I added was called Minimeta plugin I downloaded from wordpress. Before I used your plugin the text was normal i.e. black but after your plugin the text becomes white which works OK if i inserted an orange background gif but wouldn't if i just use a white background. I guess this widget somehow shares the CSS from your plugin so the text is white. I want my text on login page white but not on this login sidebar...

  • Great job! I had a client that wanted to allow users to login, but needed to integrate the login page with the site design. This is exactly what we were looking for.

  • I've been looking for this very thing! Found it at last!

  • I have a Big trouble....

    I use register plus plugin (http://skullbit.com/wordpress-plugin/register-plus/) but when BM CUstom Login is enabled no "validation emails" are sent to new users... with BM Cus loguien is off everythings go by mail Fine..

    How Can I solve this?

  • Hi Ben

    Is BM Custom Login suitable for Wordpress 2.6.1. If not when will it be available. I am currently using it on WP 2.5.1 but don't want to fall behind in the WP upgrades.

    The button to sign on is still WP blue. Do I change this in Wordpress - color-fresh.css?

  • Hi Ben,
    I think I'm having the same problem that Venesa was having. Did you ever figure out what the problem was and what the solution is? Thanks.

  • Mauricio - I would suggest not using the custom login plugin if it's breaking something else. I have no idea what the issue could be but bm-custom-login doesn't touch any of the emailing functionality. All it does is add a couple of style sheets to the administration page.

    Everyone else - in my tests the plugin works fine with wordpress 2.6, I don't know what problem you are talking about it looks as intended. If you mean customising the login button colour then that should go in one of the css files in the plugin. The whole point of the plugin is that you don't edit core wordpress files (such as css-fresh.css) as these get overwritten when Wordpress is updated.

  • Maybe you are right.. Maybe the guilty would be phpmail or what is wordpress using for sending validation mails.

    Thank you, I´m still looking for help :P

  • Hi Ben
    I noticed your latest coment #119 says not to change the wp css files. Can you have a look at my login screen at http://catchronicles.net which is now online. I just don't know how to change it unless I change the wp css file. Roland says he may be having the same problem. Is anyone else?

    Also I am not sure what this means in your DoFollow if I add the website - "will now get some link juice from Google when you comment and supply your site url".

    Thanks so much for your help.

  • Mauricio - post again if you work out what the solution is. I can't see how it could be my plugin but if it is then I'd like to get it fixed.

    Venesa - if you want to customise the button then I would suggest changing one of the plugins css (wp-content/plugins/bm-custom-login/bm-custom-login-2.css) files instead of the wordpress fresh css file.

  • Yes, I THink that the plug in has not anything to do with my problem. I think that the problem is related to the function of the going out mails of phpmail(). Now I´m using SMTP plugin for wordpress to see if this helps.

  • Thanks ben! It helps me alot. I am making a memebership site to provide people our stock market tips and free stock pick. I am trying to looking at a custom look login page awhile. Fortunlatey, I find your plugin. Once again thank Ben!

  • sir, you are THE MAN! I am so thankful for this plugin!

  • Hi,
    May I know what happens after you login? Do we still see the default wordpress dashboard? Can we customize that?

  • hs - it's only for the login screen. Everything else remains the same I'm afraid.

  • I see. Thanks, Ben! :)

  • Great tip !
    Like it ..
    Thanks ..

  • I am using the wordpress 2.6.2 version. i was using the custome login before and it was working file.now when i upgraded the wordpress logo still appears inspite of the background image which i have uploaded.
    please let me know what to do.
    thanks.

  • i'm facing a big problem here..after installing this plugin i cant even login to my blog..evrytimes i login it will redirect me to the login page..plzz help me..plzzzz

  • If you're having problems with the plugin then just login to your ftp and delete the files, but I really doubt the issue is this plugin as it doesn't affect anything like that.

  • Hey Ben, thanks for the plugin. I changed some of the CSS as the text was getting broken and lost padding with german language settings. It should look exactly the same but work with a longer "Lost your password?" string.
    #nav {
    background:url( images/login-bkg-bottom.png ) no-repeat bottom left;
    width:380px;
    height:45px;
    margin:0 0 0 -5px;
    padding:0 0 0 28px;
    }
    I removed the text-indent and did the job with margin and padding.
    cheers

  • For the life of me I cannot get this to work on WordPress MU. There are post that I've found where people say "modify a core file to make it default for all blogs, etc" but they never say what core file. As for "change the php file to point to the mu plugin DIR" ... that's already there.

    I am so confused!

  • I'm having a problem with this plugin on Wordpress 2.6.2. Whenever I have the plugin installed, my custom login screen is broken and the wordpress logo is still displayed. It used to work great, but not anymore. What happened??

    check out an example image of this problem here:
    http://www.justinflood.com/picture1.png

  • Me too.

    After upgrade to 2.6.3, i have problem with login css.

    U can see it into http://www.portogaspar.com/wp-login.php

  • To Jason:

    Place the Plugin in the plugins folder, not mu-plugins. Then get Plugin Commander and set the Custom Login plugin to auto-enable, and then hide the Custom Login plugin from the blog owners, all are settings in Plugin Commander. Don't edit core files unless you have to, but you shouldn't for this.

    To Justin Flood:

    Unfortunately, it seems that when you update to Wordpress 2.6.2 or higher, the Custom Login Plugin, loses it's CSS priority, or maybe can't find it. The CSS file from the updated Wordpress you installed takes over, but the plugin still tries to force the image in there, that is why the Wordpress logo is in there, with your login image and the padding is all screwed up. It might have something to do with hooks missing in the newer Wordpress. Hopefully an update will come.

  • Thanks for the tips Rich

    It looks like i will have to look into the issue with WP 2.6 not liking the css files being included. I shall update everything as soon as I can

  • There is a formatting problem with mine... Is there a way to shift the login fields a bit down..?

    Thanks.

  • What do you think, when will a new version be released?

  • Hi Ben!

    I'm just posting to let you know that BM Custom Login uses some deprecated function calls, namely 'get_settings' which has been replaced by 'get_option'.

    A simple search-&-replace will sort it out for you, and avoid filling our deprecated call log. :)

    Thanks for your time and effort!

  • @Gustavo
    You seem to have it working at the URL you provided. What did you do to fix it?

  • Anyone get this to work on WP 2.7? When I downloaded the two images, one a PSD template, and the other a bottom gif, it appears the PSD template is 2-3x too big compared to the square-ish box WP uses. The top and bottom images dont really line up when you upload your custom images. Also, how do you change the background wallpaper and the login button/hyperlink colors on the login page? They are currently default WP blue. Thanks.

  • This worked fine for me untill 2.7. I get a white border and slight layout breakage. I'm sure your aware of this, but thought I'd report it anyway ;)

    Great plug-in :)

  • I installed Recaptcha on Wordpress MU, it works correctly. There is
    however an issue...... For some reason my login page http://www.realfam.com
    (then click on log in on right sidebar) is all askew now. It seems
    that even though recaptcha isnt being used on that page directly it
    has made the fields wider and hanging the appearance. Others have
    experienced this. Is there a fix?

  • Hi Ben,

    Awesome work on the plugin, but as mentioned above, 2.7 has broken something with the CSS on the login page.

    I also get the white border and a slightly shifted layout.

    Sorry to be the bearer of bad news!

    Thanks for your efforts.

    Simon

  • Wordpress 2.7 'border problem'
    To get rid of the white border simply go to login.css (wordpress\wp-admin\css\login.css), open it and remove one line:
    border: 1px solid #e5e5e5;
    from:
    form {
    margin-left: 8px;
    padding: 16px 16px 40px 16px;
    font-weight: normal;
    -moz-border-radius: 11px;
    -khtml-border-radius: 11px;
    -webkit-border-radius: 11px;
    border-radius: 5px;
    background: #fff;
    border: 1px solid #e5e5e5;
    -moz-box-shadow: rgba(200,200,200,1) 0 4px 18px;
    -webkit-box-shadow: rgba(200,200,200,1) 0 4px 18px;
    -khtml-box-shadow: rgba(200,200,200,1) 0 4px 18px;
    box-shadow: rgba(200,200,200,1) 0 4px 18px;
    }
    Everything should work afterwards.

  • Isn't this "border problem fix" reversed when upgrading WP version?

  • this is what fixed it for me.
    instead of removing 'border: 1px solid #e5e5e5;'

    i went into bm-custom-login-2.css and found
    form {
    color:#fff;
    }
    i then added 'border:none;' as a property and it seems to have worked.

    everywhere else i have seen the first suggestion so maybe there is a reason for that.
    so i'm not sure if it breaks something elsewhere in wordpress, but its fine for now.

  • Hey man, great plugin! I was trying to do this the hard way until I found it. One thing I noticed though; the end ">" was left out on the image tag for the custom header. Still, works like a charm! Thanks again

Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Posts linking here

  1. My first wordpress plugin « binarymoon
  2. WordPress Tricks and Tips: Custom WordPress Login
  3.   Formulario de registro personalizado en WordPress - Usabilia
  4. 自定义 WordPress 登录界面 - Nicky's blog
  5. DeDestruct - A Web Design Journal » Blog Archive » Customizing the Wordpress Login Screen - Pt 2
  6. David Airey :: Graphic Designer » Creative resources 26 July 2007
  7. 34 Insanely Useful Wordpress Plugins for Admins
  8. links for 2007-07-27
  9. Keep A Test Site Of Your WordPress Blog
  10. Bookmarkables for 30 July 2007 : FocusMinded.com
  11. Customizing log-in page - WordPress : Blog & WordPress
  12. Customise Your Wordpress Login Page at Nonimage Blog
  13. BlogBuzz July 30, 2007 » Webmaster-Source
  14. WordPress Ticker (10) — Software Guide
  15. Rund um Wordpress » Pixeldrama
  16. www.ben-inside.de
  17. F-LOG-GE » Blog Archive » Wordpress-Login individualisieren
  18. 10 Links für ein besseres WordPress-Blog | NanoPub
  19. Review: Binary Moon > thepinkc
  20. Binary Moon Links Competition - Get Free PR7 Links for Entering | ShanKri-la
  21. del.icio.us bookmarks for August 9th through August 11th » nonsmokingarea.com » Blog Archive
  22. Having fun with WordPress login. Box or not. « WordPress Bits
  23. Site Mod: Login Page » Chris Norton
  24. » Speedlinking 18-08-2007 Ganha dinheiro online com MUIOMUIO.NET: Dicas para fazer dinheiro com blogs
  25. two.five.three.two » Blog Archive » Custom WP Login
  26. Have a custom log in page - Bloggeries Blog Forum
  27. Even better login customization | Kahi’s WordPress Notes
  28. hjw » Blog Archive » fresh new site.
  29. momworx » Schöner anmelden.
  30. The Unofficial Wordpress Quickstart Guide: From Start to Publish | SiNi Daily
  31. FlipMix.NET - Жизнь в стиле WEB, Media & Tech » Blog Archive » Изменяем Login Screen с BM Custom Login Plugin
  32. iMod - Blogging, Chatting, Coding, Marketing and lots more..
  33. Tukar Ruangan Login WP Anda | Blog Konsep Terbuka
  34.   Tutorial: formulário de login no Wordpress by Cadu de Castro Alves
  35. Customise Your Wordpress Login Screen | Just Creative Design | Jacob Cass
  36. Buffer dump 15DEC07 « Feet up, eyes closed, head back
  37. gt.grf » Blog Archive » Wordpress 커스텀 로그인 플러그인
  38. login screen change : Steven Macintyre
  39. Customize your Wordpress Login Page. | macobex : infohunter
  40. 5 Wordpress Plugins για κάθε Admin | Webz
  41. » 12 skin per il login in WordPress » TrailerBlog
  42. CreativeBurst.ORG » Hacking Wordpress
  43. Quick n’ Dirty Admin Login Screen
  44. Customize Your WordPress : Blog and Web Info
  45. 8 Templates para la Administración de WP y Plugins | frogx.three
  46. Wordpress Plugin Collection and Recommendations | Wordpress Hosting India
  47. Custom images on wp-login wordpress login screen
  48. Customized WordPress Login » Amor’s Blog
  49. Kerry Webster - ‘Branded Login Screen’ Plugin
  50. Custom Wordpress Login Plugin | The Aang Supriatna's Blog Area
  51. Customize your Wordpress login
  52. SpiderMarket » Great Wordpress Plugins for Magazine Developers
  53. 40+ Most Wanted Wordpress Tricks and Hacks
  54. 9月森林 » 40+ Most Wanted Wordpress Tricks and Hacks
  55. WordPress 后台主题赏析 | Dreamcolor's Cote
  56. Mas de 40 trucos y hackeos para Wordpress | Pboza
  57. 40+ Most Wanted WordPress Tricks and Hacks | Blogging Tips
  58. 40 Consejos para optimizar tu Wordpress » Comenta o Muere | Actualidad, Humor, Tecnología, Política, Ciencia, Música… y otros muchos temas de los que merece la pena hablar.
  59. Schweizer WordPress Magazin » Anleitungen CSS und XHTML » WordPress Login Gestaltung
  60. Wordpress Plugin Centre - Wordpress tips - WordPress Tips
  61. 谷歌客 » 30个优秀Wordpress技巧
  62. WordPress 常用技巧40+则,诚邀您的参与翻译 - WordPress中文站
  63. Einchi » Blog Archive » Custom Your WordPress Login
  64. 25 Brilliant WordPress Tips, Tricks and Plugins to Make Your Blog Stand Out | Oragle
  65. RCDM » Blog Archive » 40 consejos y trucos para Wordpress (muy interesante)
  66. Schweizer WordPress Magazin » Beitrag: WordPress Login Gestaltung
  67. How do I remove the wordpress logo from the login and register pages? | wp-Member.com Advanced Wordpress Membership Plugin
  68. WordPress 常用技巧40+则 : 从1981年2月开始的人生
  69. WordPress 常用技巧40+则 - 从1981年2月开始的人生
  70. Customize Your Wordpress Login Screen With ‘Branded Login Screen’ Plugin
  71. Pimping Your Wordpress Theme for Humans - Sugarrae
  72. Branding Login Screen Wordpressmu! | ayo ngeBlog!
  73. Vizuālie sīkumi | Senteevs.lv
  74. Adding The “Cool Factor” To Your Website - Web Development
  75. Branding Login Screen Wordpressmu! | sigidnugroho.com
  76. Blog Roundup for the 25th of July 2007 :: Christopher Ross
  77. My Favorite Community Building Wordpress Plugins | Scott Fish
  78. Aronil - Custom Wordpress Login
  79. DNyap » Blog Archive » My Favorite Community Building Wordpress Plugins
  80. Wordpress - Custom login page « Motikhavdi
  81. Mommy’s Idea Book » Blog Archive » Custom Login Page
  82. Complete Wordpress Theme Tutorial « Kolmex
  83. Adding The “Cool Factor” To Your Website | WpBlogHost
  84. Plugin To:Customize/Change Your WordPress Login Page! | TechZoomIn
  85. 40+ Most Wanted Wordpress Tricks and Hacks | Overflowed Media
  86. WP Plugin: Customize Your Wordpress Login Page « iNK
  87. Plugin: custom login page by Binary Moon | Best Wordpress Themes | Free WordPress Layouts
  88. Unlimited New Useful Wordpress Tips,Tricks & Hacks - Themeflash : One Stop For All Your Web Resources
  89. 40+ Most Wanted Wordpress Tricks And Hacks « Photoshop.vn – Your Design Resource
  90. 10 Ways to Customize and Personalize your Wordpress Blog | Pro Blog Design
  91. Case Study: Creating a branded WordPress registration & login process
  92. January – Hopefully the start of a good year | NDE Designs
  93. 65 Of The Best WordPress Tutorials « Junkiee.Net
  94. 54 Awesome Tutorials for Any Web Developer | The Technology Reports

About me

About BenMy name is Ben Gillbanks. I'm a lover of Video Games, WordPress, Web Development and everything in between.

I have been working with the internet for over 10 years, and working with computers even longer. I am a hardcore Nintendo fanboy and have owned most of their consoles at one stage or another.

Read more about me on my about page


Random Link-outs

  • Binary Sun Games for everyone
  • Miniclip Where I work by day
  • Wpazo A blog that hits you over the head with the good links to all the best WordPress stuff
  • Binary Joy Games I love

My Twitter Updates follow me ›

The Binary Network links to all my websites
bengillbanks.co.uk - Ben Gillbanks

Ben Gillbanks

All my websites under 1 roof, the easiest way to find out what I do

Pro Theme Design - premium WordPress themes

Pro Theme Design

Premium WordPress themes by web design pros (erm... that includes me)

Binary Joy - gaming news and reviews

Binary Joy

Gaming news and reviews

Binary Sun - play free online games

Binary Sun

Play and download free and paid games (many made by me)

Gaming Angel - download and play games online

Gaming Angel

Stacks of shareware games, free to try and cheap to buy