• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Create a custom login page in WordPress

By Abhishek Ghosh March 8, 2011 6:10 am Updated on October 17, 2014

Create a custom login page in WordPress

Advertisement

This tutorial will show you how to set up a custom login page in WordPress. No special knowledge required for it.

To log into WordPress administration, it is convenient to go through one of two following URLs:

 

 

http://Yoursite.com/wp-admin/orhttp://Yoursite.com/wp-login.php 

 

This method is however not very friendly if you allow the registration of new users. In fact, unless you know WordPress, you should enter the URL corresponding to each of the new registrants.

Advertisement

---

So the easiest thing to create a login form and then insert it into a new page. We will therefore use page templates in WordPress .

 

Creating the page template

 

Using an FTP client, go to / wp-content/themes/Name_of_your_THEME / then duplicate the page.php file.

Rename the copy by an evocative title as template-login.php.

Open it and then convert it as a page template by adding lines of code at the beginning of file:

 

<? Php/ *Template Name: Login Area* /?>

 

Insert the login form

 

Then locate the line containing:

 

Php the_content

 

This line will display the contents entered in the TinyMCE editor from your WordPress administration.

 

Case 1 – Using a PHP command

 

Just above or below – is to your liking, place the following PHP command:

 

<? Php wp_login_form ();?>

 

Save the file to your FTP server and then connect to your WordPress administration. Changes in the module, click Add Item. This command has many parameters that can be added between parentheses as shown in the WordPress code page.

 

Case No. 2 – Use an HTML form

 

This second method has the great advantage of not containing a single line of PHP code. So you can insert directly into a page, section or even a widget for WordPress.

The second advantage of hard-coding – instead of going through the arguments to insert in the PHP (which is not obvious when you start), it is much easier to customize. It is neither more nor less than a form can no longer be standard HTML.

 

<form method="post" action="http://www.YOUR_SITE.com/wp-login.php" id="loginform" name="loginform"><p><label for="user_login"> id </ label><input type="text" tabindex="10" size="20" value="" id="user_login" name="log"></ P><p><label for="user_pass"> Password </ label><input type="password" tabindex="20" size="20" value="" id="user_pass" name="pwd"></ P><p> <label> <input type="checkbox" tabindex="90" value="forever" id="rememberme" name="rememberme">Stay connected </ label>| <a Href="http://www.YOUR_SITE.com/wp-login.php?action=lostpassword"> Forgot password </ a> </ p><p><input type="submit" tabindex="100" value="Se connecter" id="wp-submit" name="wp-submit"><input type="hidden" value="http://www.YOUR_SITE.com/" name="redirect_to"></ P></ Form>

 

Encompass the whole of a tag  with <div> , sprinkle with CSS and get a result according to your needs. Do not forget to replace the URLs in the domain of your site.

Bravo! You now have a connection zone (login) personalized and easily repositioned on your site.

 

 

Signature

This Article Has Been Shared 817 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Create a custom login page in WordPress

  • Optimize WordPress by compressing data through .Htaccess

    We propose a simple procedure yet very effective to make your site running fast by adding a code snipplet to .htaccess file.

  • Get your Twitter’s tweet as RSS feed and JSON’s url plus widget codes

    You can fetch your Twitter account’s tweets as RSS feed or the get the JSON’s url with this nice and easy trick.

  • Speed up WordPress by Gzip Compression from .Htaccess and php flush

    Google said that the speed of page loading was a factor to consider in the SEO, then we should better optimize it.

  • WordPress unordered Lists with custom alignment with CSS

    Wordpress unordered lists are aligned to the left with usage of a tiny bit of CSS and HTML it can aligned to the right side.

  • KML Google Maps and HTML Google Maps

    KML Google Maps and HTML Google Maps are two format ways to add Google Maps in WordPress Posts. Let us see the advantages and disadvantages of these formats.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Comments

  1. AvatarSolar Monster says

    April 25, 2011 at 2:24 pm

    Just what I was looking for… there are way too many plugins all achieving the same thing but this is what I need. Thinking about it though I guess you found a lot of this code in the login.php file?

    Aaron

  2. AbhishekAbhishek says

    April 25, 2011 at 6:41 pm

    Yes, there are many plugins for customizing the logon page. If one code (or copy paste codes) it is better to avoid too many plugins.
    That is true :)

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (22.1K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • How Artificial Intelligence (AI) Is Changing The Way We Play Bingo May 16, 2022
  • Why You Need A Big Data Consultant May 15, 2022
  • The Connection Between AI And Online Slots May 13, 2022
  • How To Choose Your Niche As An Instagram Influencer May 12, 2022
  • How to Choose a Powerful Domain Name for Your New Venture May 12, 2022

About This Article

Cite this article as: Abhishek Ghosh, "Create a custom login page in WordPress," in The Customize Windows, March 8, 2011, May 17, 2022, https://thecustomizewindows.com/2011/03/create-a-custom-login-page-in-wordpress/.

Source:The Customize Windows, JiMA.in

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Privacy Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2022 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy