WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [closed] Custom Login Page Without Any Plugins (25 posts)

  1. Tears For Someone
    Member
    Posted 2 years ago #

    Custom Login Page Without Any Plugins
    This is very simple tricks...
    You Have Just Basic Knowledge Of Editing CSS In WordPress.

    Custom Login Screen Basic Needs
    Themes Header, Footer, & style.css

    1. Copy all files and folders from theme folder to wordpress folder, if it asks replace files, choose skip replace file.

    2. Open wp-login.php

    3. Copy this code <?php get_header(); ?>
    and paste before this line " <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> "

    4. Copy this code <?php get_footer(); ?>
    and paste at the end.

    5. Copy all code from style.css
    and paste at the end of login.css (Path : /wp-admin/css/login.css)

    Custom Login Page Without Any Plugins
    This is very simple tricks...
    You Have Just Basic Knowledge Of Editing CSS In WordPress.

    Custom Login Screen Basic Needs
    Themes Header, Footer, & style.css

    1. Copy all files and folders from theme folder to wordpress folder, if it asks replace files, choose skip replace file.

    2. Open wp-login.php

    3. Copy this code <?php get_header(); ?>
    and paste before this line " <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> "

    4. Copy this code <?php get_footer(); ?>
    and paste at the end.

    5. Copy all code from style.css
    and paste at the end of login.css (Path : /wp-admin/css/login.css)

    6. You need some changes in default code of login.css or you can delete whole default code.

    Try It.... Its Simple & Works 100%.

    Try It.... Its Simple & Works 100%.

  2. Are you telling people to EDIT wp-login.php? or make a new page?

    Don't edit wp-login.php - it'll be overridden when you update.

  3. Tears For Someone
    Member
    Posted 2 years ago #

    i am telling people to EDIT wp-login.php...
    it's not overridden when you update...

    its a simple logic...
    wp-login has no header and footer...
    the base is of header and footer is style.css

    so try it... and make few changes in css code...
    its worked, try this.

  4. i am telling people to EDIT wp-login.php...
    it's not overridden when you update...

    *sigh* Yes it is. In fact, if you're ever hacked, it's one of the files we tell you to remove and replace with a fresh copy.

    You can style your login differently, but editing the core files is never the way to go about it. Please only edit files in your theme folder (and even then, use a child theme).

    For the record, here are the files that are NOT overwritten when you upgrade WP:
    wp-config.php
    .htaccess
    /wp-content/themes/*
    /wp-content/plugins/*
    /wp-content/uploads/

    Why did I * mark themes and plugins? Becuse the theme twentyten and twentyeleven, and the plugins Hello Dolly and Akismet WILL be overwritten.

    Today WP only updates changed files. If any files outside the ones I mentioned are edited (like wp-login.php) then you will lose your changes. Please don't do that.

  5. Tears For Someone
    Member
    Posted 2 years ago #

    There is 3 basic concept....

    1. wp-login has no title header, menu bar and footer.

    2. theme has title header, menu bar, footer and own style.css.

    3. and third is our brain.

    finish.

  6. And four is a complaint "Why did the upgrade overwrite my changes!?"

    Use a plugin, please. There's a very good reason we tell you not to edit core :) If you don't believe me, just wait.

  7. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    It's very easy to make a login screen as part of your theme
    http://vudu.me/28v
    (THat would match your theme, use the header, footer, nav, etc)

    Or to block the default stylesheet from loading, and loading a custom one instead
    http://vudu.me/2p0

    Both of these options are plugin free, and involve only your theme. Why not keep it safe eh?

  8. jolamar
    Member
    Posted 2 years ago #

    Here is a good tutorial on how to Build a Custom WordPress Login Screen without modifying your core files:

    http://liljosh.com/build-a-custom-wordpress-login-screen-tutorial/

    and also some inspiration:

    http://www.flickr.com/groups/bm-custom-login/pool/with/3948974714/

    Enjoy.

    -lil josh

  9. Tears For Someone
    Member
    Posted 2 years ago #

    Well sorry for my above experiment, but it works that time luckily.

    then i found some little changes...

    Custom Login Screen Basic Needs
    Themes Header, Footer, & style.css

    1. Open wp-login.php

    2. Copy this code <?php get_header(); ?>
    and paste before this line " <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> "

    3. Copy this code <?php get_footer(); ?>
    and paste at the end.

    4. Final change at line number 68 and 69
    wp_admin_css( 'style', true );
    wp_admin_css( 'style', true );

    Thats it, and it works.

    @ Ipstenu, please try this, it works really.

  10. esmi
    Forum Moderator
    Posted 2 years ago #

    Never, ever, edit core files!

  11. Tears For Someone
    Member
    Posted 2 years ago #

    but it really works, just try this...
    you have to spend only 5 minutes for that...

  12. jolamar
    Member
    Posted 2 years ago #

    Tears, what happens when you update WordPress? Won't that file get overwritten?

    [sig moderated as per the Forum Rules]

  13. esmi
    Forum Moderator
    Posted 2 years ago #

    And you can bring your entire site down in the same 5 minutes by editing core scripts.

  14. Tears For Someone
    Member
    Posted 2 years ago #

    @ esmi : i knw its all core scripts...

    but you have to try it...

    after updating wordpress, you have to spend only 20 seconds to change this code... because it works...

  15. jolamar
    Member
    Posted 2 years ago #

    Tears, that may work from the perspective of a developer... but a lot of WordPress sites are handed off to clients who do not want (nor know how) to touch core files.

  16. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    Or, you do it the right way, in your theme.

    Then, whenever wordpress gets updated, you don't have to edit anything.

    It's so easy to make a login page in your theme... why would you hack at core?

  17. Tears For Someone
    Member
    Posted 2 years ago #

    @ Rev. Voodoo : because login page easily gets themes look.

  18. Tears For Someone
    Member
    Posted 2 years ago #

    @ Rev. Voodoo : you tried it?

  19. esmi
    Forum Moderator
    Posted 2 years ago #

    you have to spend only 20 seconds to change this code... because it works...

    Or doesn't if you make even the tiniest mistake. Many WordPress users don't understand PHP, cannot use FTP and cannot upgrade a plugin or a theme manually. Yet you're suggesting that they edit core scripts? Will you be around to help them - for free - when their entire site falls over?

    because login page easily gets themes look

    Uh? Isn't that an argument for using the via-the theme approach?

  20. Tears For Someone
    Member
    Posted 2 years ago #

    @ esmi : how come site falls over??

  21. Tears For Someone
    Member
    Posted 2 years ago #

    @ esmi : Just check this

    http://quirm.net/wp-login.php

    your login page, it looks like dirty, when any visitor access this page.... :)

  22. esmi
    Forum Moderator
    Posted 2 years ago #

    No - it looks like a WordPress login page, thank you. And since that site does not allow anyone to subscribe as a user, it's hardly relevant. I am more than capable of theming a login page the correct way (via the theme) - if that is needed. You apparently are not.

  23. jolamar
    Member
    Posted 2 years ago #

    Let's be nice to each other. We all use WordPress because it's simple. No need to complicate things. :)

    SpeckyBoy to the rescue! http://speckyboy.com/2012/02/19/how-to-build-a-custom-login-page-design-for-wordpress/

  24. Tears For Someone
    Member
    Posted 2 years ago #

    and also check this http://www.rvoodoo.com/wp-login.php
    may be this page is edited....
    because last line on this page

    BACK TO THE SITE
    and wordpress use ← Back to "Site name"

  25. esmi
    Forum Moderator
    Posted 2 years ago #

    Since you now seem intent on making this personal, I think the discussion is now finished.

Topic Closed

This topic has been closed to new replies.

About this Topic