WordPress.org

Ready to get started?Download WordPress

Forums

Customized login page (32 posts)

  1. YellowDog
    Member
    Posted 10 years ago #

    I would like to customize the login/registration pages so that they have the same look and feel of my site. I suspect that this can be done with the wp-login.php and/or wp-admin.css, but I wanted to check first before I screwed something up. I thought there might be a tutorial somewhere so that, if it is the wp-admin.css, the relevant selectors might be described so I don't have guess. TIA

  2. willneea
    Member
    Posted 10 years ago #

    I don't know the answer to your question, but if it is in reference to the page that links from your user name, there are some other problems there...

  3. NuclearMoose
    Member
    Posted 10 years ago #

    I know that Chris J. Davis, a.k.a. "Jesuit" has done this very thing. You may find some specific posts about it on his site: http://www.chrisjdavis.org/

  4. Anonymous
    Unregistered
    Posted 10 years ago #

    Moose - It does appear that Chris Davis has altered his wp-login.php and/or wp-admin.css. I'll explore his mods. I just wish there was a document that spelled it out (maybe I'll do one after I figure it out). Thanks.
    Willneea - I'm not sure what problems you are referring to. Is it something I need to know? Can you elaborate? Thanks.

  5. NuclearMoose
    Member
    Posted 10 years ago #

    Check Chris' site, he may have some specific articles of his own in regards to the changes.
    Also, you never know if some things might show up in future releases of WP.

  6. TechGnome
    Moderator
    Posted 9 years ago #

    Spade in hand, I stand before thee crypt keeper and command this post risen from the dead and back into the land of the living-dead.

    OK, so I searched and this is the only result that came close and it's pretty outdated.

    According to the codex in regards to themes:
    # style.css - The main stylesheet. This must be included with your theme.
    # index.php - The main template. If your theme provides its own templates, index.php must be present.
    # comments.php - The comments template. If not present, comments.php from the "default" theme is used.
    # comments-popup.php - The popup comments template. If not present, comments-popup.php from the "default" theme is used.
    # home.php - The home page template.
    # single.php - The single post template. Used when a single post is queried. For this and all other query templates, index.php is used if the query template is not present.
    # page.php - The page template. Used when an individual Page is queried.
    # category.php - The category template. Used when a category is queried.
    # author.php - The author template. Used when an author is queried.
    # date.php - The date/time template. Used when a date or time is queried. Year, month, day, hour, minute, second.
    # archive.php - The archive template. Used when a category, author, or date is queried. Note that this template will be overridden by category.php, author.php, and date.php for their respective query types.
    # search.php - The search template. Used when a search is performed.
    # 404.php - The 404 Not Found template. Used when WordPress cannot find a post or page that matches the query.

    OK, now, let's assume for a moment, that I have turned on the option that only registered users may post comments. When they click the "Register" (or even the "Login") links, they get the beautiful (used loosely) WP Login screen. Gah! I'd like it to look a little more integrated into my site than that. Is there a way to do that through themes/templates, or am I going to need to *cough* hack & slash and make my own login/register page?

    Tg

  7. stevensj2
    Member
    Posted 9 years ago #

    It shouldn't be too hard at all.

    I'll take a look at this and see what I find.

    --Edit--

    10 minutes later, and I have this: http://www.nautilus7.com/wp-login.php

    What you have to do is a lot simpler than it looks. All the PHP in there can make it look daunting, but it's easy.

    You have to do everything *twice*, since that one php file specifies two pages - one for login, one for lost password.

    What I did was:

    -Remove link to admin stylesheet.
    -Add link to my current theme's stylesheet.
    -Add in my own markup to specify my header and general layout (you may have to view the source of one of your normal pages if you're unfamilar with how yours goes).
    -Remove all references of "id=login", "id=email", etc etc that refers to something that was obviously in the admin CSS.
    Change <div id="login"> to <div id="entry">
    -Save, upload, and basque in its glory!

    **Remember, you must do all the above steps twice - once each in two different locations. Browse through wp-login.php to find that "two" actual pages are really in there.

  8. TechGnome
    Moderator
    Posted 9 years ago #

    Ghack! 'Twas as I had feared. The gods of Mount WuPea have forsaken us and forced us to make sacrifices by hand. Fortunately, my religion forbade me the use of the Theme Switcher such that I will not need to worry about that prophecy should it come to pass.

    Tg

  9. freshpolitics
    Member
    Posted 9 years ago #

  10. moshu
    Member
    Posted 9 years ago #

    that's not really perfect... if you hover around a lot of "hidden" links show up.

  11. stevensj2
    Member
    Posted 9 years ago #

    "that's not really perfect... if you hover around a lot of "hidden" links show up."

    Where? I don't see any hidden links on any of the examples given so far (though freshpolitic's site seems to use the "hand" curser).

  12. moshu
    Member
    Posted 9 years ago #

    Hmmm... earlier freshpolitic's example showed up in a strange way. Now it's OK.

  13. Jinsan
    Member
    Posted 9 years ago #

    Very interesting thread, certainly something I'll give a go :)

  14. TechGnome
    Moderator
    Posted 9 years ago #

    HAcking & slashing the file is one thing, but I would have thought that with all the other options available in a theme/template, that this seems like a no-brainer.....

    I'm off to combat the mages of BugTracker and consult the Oracle of Codex for the solutions I need.

    Tg

  15. TechGnome
    Moderator
    Posted 9 years ago #

    For those who have the stomache for this sort of thing, I've logged it as an issue in the bug tracker. You can follow all the gorey details right here: http://mosquito.wordpress.org/view.php?id=1155

    Tg

  16. stevensj2
    Member
    Posted 9 years ago #

    I don't think I would consider that a bug???

  17. TechGnome
    Moderator
    Posted 9 years ago #

    I didn't log it as a bug..... but as a possible feature.... but the only place to do that is in the bug tracker.... I never once said it was a bug... an oversite perhapse, and inconvineint too, but not a bug.

    Tg

  18. InFnit
    Member
    Posted 9 years ago #

    [quote]
    What I did was:

    -Remove link to admin stylesheet.
    -Add link to my current theme's stylesheet.
    -Add in my own markup to specify my header and general layout (you may have to view the source of one of your normal pages if you're unfamilar with how yours goes).
    -Remove all references of "id=login", "id=email", etc etc that refers to something that was obviously in the admin CSS.
    Change <div id="login"> to <div id="entry">
    -Save, upload, and basque in its glory!

    **Remember, you must do all the above steps twice - once each in two different locations. Browse through wp-login.php to find that "two" actual pages are really in there.
    [/quote]
    I got these errors

    Warning: extract(): First argument should be an array in /home/*******/public_html/********/wp-includes/functions.php on line 1733

  19. InFnit
    Member
    Posted 9 years ago #

    The error refers to this line in wp-includes/functions.php

    extract($wp_query->query_vars);

  20. InFnit
    Member
    Posted 9 years ago #

    Any help?

  21. Kafkaesqui

    Posted 9 years ago #

    The error relates to the load_template() function. Are you attempting to call up a theme template in wp-login.php?

  22. InFnit
    Member
    Posted 9 years ago #


  23. InFnit
    Member
    Posted 9 years ago #

    I added in these lines:

    <?php get_header(); ?>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    And changed the routing for the CSS sheet

  24. Kafkaesqui

    Posted 9 years ago #

    Try adding this just before the get_header() call:

    <?php include('./wp-blog-header.php'); ?>

  25. InFnit
    Member
    Posted 9 years ago #

    Didn't work - I have 1.5 If it;d help

  26. amory
    Member
    Posted 9 years ago #

    What happens when you take out the three template calls (and replace with the content in the header/sidebar/footer files)?

  27. InFnit
    Member
    Posted 9 years ago #

    It works if I copy the "contents" of the files into their respective places. Using includes doesn't work

  28. tbrams
    Member
    Posted 9 years ago #

    I don't know it this will help, but I have documented how I managed this in an article here:

    http://brams.dk/2005/05/18/building-a-member-site/

    Works just fine - especially when combined with a customized fronpage on the admin interface.

  29. midnightsun
    Member
    Posted 8 years ago #

    If I wanted to customized the frontpage for only level 0 users what files should I edit? Also is there a guide on how to go about doing it??

  30. maggiecurran
    Member
    Posted 8 years ago #

    Why do I get a pop-up request for a username and password every time I load my blog page (www.mylifeinstockholm.com)?

    I am using the Default theme.

    Please, I'm very new and find PHP difficult, so explain in terms laymen can use.

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.