Support » Themes and Templates » How can you add a login.php template?

Viewing 8 replies - 1 through 8 (of 8 total)
  • I’m using James’ plugin (v1.1) on three WordPress 2.2 installations which have completely different themes with no issue. Maybe something else is causing your problem

    You could look in your /wp-admin files. You’ll see three stylesheets. Edit them to your liking. 🙂

    Breakingball, perhaps I did anything wrong, I ended up with no login at all :S

    Doodlebee, you’re right, but editing /wp-admin stylesheets doesn’t solve the problem of getting the header, sidebar and footer. In this blog it is implemented;

    Is there any way to put a wp-login.php like;

    /* Short and sweet */
    define(‘WP_USE_THEMES’, true);

    and then a wp-login.php template in your theme folder?

    I honestly don’t know. You could give it a shot – just back up the original before you experiment so if it fails utterly you have the old one to revert back to.

    To get non-WP pages to recognize the WP theme, you have to add:

    <?php require('/SERVER PATH TO/wp-blog-header.php'); ?>

    Since it’s in the admin files, you might not have to change the server path from “./wp-blog-header”, but you may – I’m not sure. Like I said, never tried it before. I would honestly be surprised if it works! But why not? Give it a shot an see what happens.

    Thanks doodlebee;

    I’m experimenting but not sure if I’ll manage to get it. I’m afraid I’m not geek enough yet! I’ll repoty back if any good.


    I’ve found the way to do this. You just need to insert get_the_header, get the footer and sidebar in wp-login. Then, remove any referece to admin style sheet so it only reads the info in the header. And finally, you can copy the login css section in the admin sheet to your own style sheet.

    It is quite simple, you just need to be familiarized with wordpress code. 😉

    Hi Guys!

    The thing You are talking about is exactly what I need.
    ganzua: could you give a little more detail? I’m sorry but I don’t know that much about WP.

    Thank You

    I just posted a patch and sample template for this in trac:

    This is my first attempt at WordPress development, but I’ve been developing php apps for 9 years now. I needed this for my own WordPress site (should be up soon), and it was a fairly easy change to make.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How can you add a login.php template?’ is closed to new replies.