Last updated on July 16, 2025 by Formidable Team

How to Create a Custom Login Form in WordPress

Want to use WordPress to create a custom login form for your site? Learn how to create a login form in WordPress that you can add anywhere on your site!

How to Create a Custom Login Form in WordPress Approximate read-time: 7.5ย minutes If you want to create a custom login form in WordPress, you arenโ€™t alone. Having a website where users can register with a username and password is a very popular feature. Itโ€™s such a popular feature that itโ€™s actually built into WordPress by default. Youโ€™ve probably seen the default WordPress login screen before with the WordPress logo: Default WordPress Login Form Thatโ€™s the WordPress login page that admins & users log into WordPress sites with. Although it works well in some cases, you want your WordPress site to be customized - donโ€™t you? If you are building a WordPress membership site, having a custom WP login form is a must. For many user-oriented sites, youโ€™d want users to register & edit their profile from the front-end of your site, not the back-end (also known as the WordPress admin or the WordPress dashboard). Inviting users to your WordPress admin is a little bit like inviting restaurant guests into the kitchen. There might be some stuff there that you wouldnโ€™t want them to see! Depending on what kind of site you are building, this could be a deal-breaker. In this step-by-step guide, weโ€™ll show you how to add a login form in WordPress the easy way. But first, weโ€™ll cover some user registration basics. Letโ€™s get to it!

WordPress custom login forms with a plugin

In reality, a login form is very basic. There arenโ€™t very many elements involved in the form itself. However, making the entire user registration system work properly is a bit more complicated. So in this tutorial, we are keeping it simple by showing you how to set up a custom login form with a WordPress forms plugin - Formidable Forms. Formidable can also handle every other form on your WordPress site too.

Create a custom login form in WordPress without a plugin

Of course, you could still do this the hard way. WordPress includes user registration features by default. But without a plugin, youโ€™d need to do a bit of coding if you want a custom login form. First, youโ€™d need to work from your wp login.php file and other php files in WordPress. Thatโ€™s a bit difficult unless you know how to code in PHP... plus, you could end up breaking your site if you make a mistake. And depending on your WordPress theme, you may need to do a lot of coding for your custom WordPress login form. Not all themes are created equal... Coding a custom WordPress login form is difficult Then thereโ€™s the matter of building your custom login form & configuring it to allow user registration and user login. Doing that requires even more coding & customization. Finally, youโ€™d need to style your form to match your site using custom CSS... this is probably starting to sound like a lot of work! Or you could just get Formidable and install our user registration add-on! And then you can use our built-in visual form styler to make your login form match your site.

Formidable Forms makes advanced site building simple. Launch forms, directories, dashboards, and custom WordPress apps faster than ever before.

How to create login forms in WordPress

Here are the steps needed to create a custom login form for your WordPress website:
  1. Install and activate Formidable Forms
  2. Install and activate the user registration add-on
  3. Create and publish your custom login form
  4. Create a reset password link and page
One more thing before we get started... This tutorial is all about the custom login form. But you may also need to create a WordPress custom login page as well. And if you havenโ€™t already, youโ€™d also need to create an online registration form so that users can register too. Luckily weโ€™ve got both of those things covered in a couple of separate posts: ? How to Create a Custom WordPress Login Page ? How to Create a Registration Form in WordPress

1. Install and activate Formidable Forms

First, letโ€™s install Formidable Forms. We do have a powerfulย free plugin, but to access the user registration add-on, youโ€™ll need to unlock theย business plan. We really want you to give this tutorial a try. So we made things easy: you can use Formidableย risk-free for 14-days. If you don't like it, we'll refund all your money, no questions asked.

Get Formidable Business

Formidable can handle all your user registration, but it can do much than that. Itโ€™s a complete form building solution! We think youโ€™ll like it. ? More than custom login forms

2. Install and activate the user registration add-on

This part is really easy. All you need to do is go to your WordPress admin, then go toย Formidable โ†’ Add-Onsย and click the 'Install' button for the User Registration add-on. Install user registration add-on There are a ton of options that can be configured with the user registration add-on, so feel free to explore the settings section in Formidable. Weโ€™ll cover a few of them in the following steps, though. ? Learn more: WordPress User Registration Forms

3. Create and publish your custom login form

Now we need to create a custom login form for your WordPress site. Hereโ€™s the best part... itโ€™s already done! Formidableโ€™s user registration add-on comes with the user login form included.

Styling your custom login form

There is one thing you can do though: style your form with the visual form styler. This is how you can make sure your login form matches your website style. To get started with that, go to Formidable โ†’ Styles. Visual Form Styler Styles From the form styler interface, you are able to make styling templates that can be applied on a form-by-form basis. Since you make changes visually, you donโ€™t need to know any coding to make your forms look great. WordPress Visual Form Styler ? Learn more: Customize Form appearance with the form styler

Publishing your login form

Once youโ€™ve made your adjustments, thereโ€™s one more thing. With Formidable, you can place your forms anywhere on your site and redirect to other pages. The visual form styler allows you to have a different style for each form. With a login form, you might want to place one login form in a sidebar or footer widget. And you might want a different style for your login widget or form. So you should create styles for each area you want to place your login forms. When itโ€™s time to publish your login form, this can be done in a few different ways:
  • Insert the login shortcode with a block
  • Insert the login shortcode manually
  • Use the Login Form widget
The shortcode for publishing your login form in Formidable is always the same:

In Formidable, there are a bunch of ways to format the above shortcode by adding parameters. The most important parameter is the one used to set the login form style. To choose the correct style for each login form shortcode, go back to Formidable โ†’ Styles and copy the CSS class for the style you want to use. set login form style Then you just add that CSS class to your login form shortcode like this:

Just replace "frm_style_formidable-style" with the correct CSS class. Thatโ€™s it! ? Learn more: How to add a login form to your site

4. Create a reset password link and page

The last thing we want to do is create a reset password link and a page where users can reset their passwords. Unless you have a robotic memory, youโ€™ve probably needed to reset one of your passwords before. And you probably took that feature for granted... until now! Luckily, this isnโ€™t too difficult in Formidable. There are a few details needed to make a password reset system work. First, we need to include a reset password link on your custom login form. If you are using a widget to display your login form, the link can be added by checking a box in the widget options. custom login form widget settings If you are using a shortcode to display your form, you can add a parameter to your shortcode like this:

Next, you need to create a reset password page on your WordPress site. Once youโ€™ve set up your entire user login system, youโ€™ll want to design this page to match your site. For now, we just need to copy and paste this shortcode into the body of the page:

Please enter your username or email address. You will receive a link to create a new password via email.

After that, go toย Formidable โ†’ Global Settings โ†’ Registration. In the 'Global Pages' section, set your 'Reset Password Page' to the page you just made. Reset Password page settings Then, click Update Options. Now all your login forms will have a reset password link! When the link is clicked, it will take logged out users to the password reset page. Then, users can reset their password in much the same way theyโ€™ve done on other sites a million times before. ? Learn more: Create a Reset Password Page

Wrapping up

Thatโ€™s all there is to it. Although there was some setup time, creating a WordPress custom login form with Formidable Forms is a lot easier than learning how to code. We hope youโ€™ve enjoyed this tutorial. For more WordPress tips, check out the Formidable blog.
If you arenโ€™t using Formidable Forms yet, youโ€™re missing out! Besides user registration, youโ€™ll find dozens more online form builder features. Get started with our free WordPress plugin orย try Formidable free for 14-days.


This article may contain affiliate links. Once in a while, we earn commissions from those links. But we only recommend products we like, with or without commissions.

Complete your purchase
Special offer unlocked.
Get 55% OFF!
Complete Purchase
Join 400,000+ using Formidable Forms to create form-focused solutions fast. Get Formidable Forms