Custom Login page for WordPress
For those of you who frequently log into and comment on various WordPress blogs (and you know who you are), you may have noticed that the login page is conspicuously unthemed, and looks virtually the same on every WordPress blog on the internet. The savvy user may also have noticed that the login page on this blog is themed. Go ahead, take a look. I’ll wait…
Pretty cool, eh? I submitted a patch via Trac for version 2.3.3 back in February, and updated it today to be compatible with 2.5.1. Well, if the Milestones on the ticket are to be believed, the plan is to incorporate this feature into version 2.6. If you can’t wait that long to pimp your login page, you can get the patch and sample login.php theme page from the Trac ticket. Just patch wp-login.php in your WordPress folder and drop the login.php file in your theme. Use your own css to style the form, and the new login page will pull in your theme’s header, footer and sidebar, just like any other page.
UPDATE: Looks like they didn’t like the approach that I took for the patch, so they’ve pushed this feature back to 2.7 to give it some more development time. To each his own, I guess. I’ll be reworking this patch and resubmitting soon.
Tags: login, registration, theme, WordPress
[...] David Still (Viper007Bond) has come up with a solution and opened up a Trac entry on wordpress.org to add hooks to wp-login.php! As of right now, it’s scheduled to officially be added to the wordpress core files in version 2.6! I can’t wait to start testing it and here I am blogging about it already. I’m excited by strange things ’tis true! [...]
Hello David,
When will you come up with the patch for Wordpress 2.6. I really need this to make my site a little bit more professional. I cant believe Wordpress still hasnt got themed login, registration and profile pages.
Greetz,
Glitch
The next release for this patch will either come when I get around to updating my own blog to 2.6 or when I take the time to rework the patch to something that they will commit to the main branch (see the UPDATE in the post). Have you tried applying the patch as-is to 2.6? I don’t know how much they’ve changed the login code, but if it hasn’t gone through too many updates, it might still apply.
- Dave
Just tested it on a WP2.6 test installation and it seems to work just fine for as far as I tested it. The code of wp-login.php has changed only slightly I think.
Hopefully themed login/registration and maybe even profile will become standard from 2.7.