WordPress.org

Ready to get started?Download WordPress

Forums

How can you add a login.php template? (9 posts)

  1. ganzua
    Member
    Posted 7 years ago #

    Well, I do know that register.php, login.php, and profile.php are referenced to /wp-admin/wp-admin.css and that they haven't any template, but how can you implement a login page like this one?;

    http://www.babyquestions101.com/signup/

    It is totally integrated with the custom theme, including header, sidebar and footer. How can you add a register.php, login.php, and profile.php template?

    I tried this plugin but it messed all the 2.2 installation;

    http://www.jameskelly.org/wordpress-plugins/custom-login-and-registration-forms-plugin/

  2. breakingball
    Member
    Posted 7 years ago #

    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

  3. Doodlebee
    Member
    Posted 7 years ago #

    You could look in your /wp-admin files. You'll see three stylesheets. Edit them to your liking. :)

  4. ganzua
    Member
    Posted 7 years ago #

    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;

    http://www.babyquestions101.com/signup/

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

    '<?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./wp-blog-header.php');
    ?>'

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

  5. Doodlebee
    Member
    Posted 7 years ago #

    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.

  6. ganzua
    Member
    Posted 7 years ago #

    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.

  7. ganzua
    Member
    Posted 7 years ago #

    Doodlebee;

    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. ;-)

  8. yaasmine
    Member
    Posted 7 years ago #

    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

  9. stealthdave
    Member
    Posted 6 years ago #

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

    http://trac.wordpress.org/ticket/4478

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic