Add Login Form Anywhere In Your Theme

This code enables you to display a login form anywhere in any theme.

You can add the code directly to a login page template.

Or

You can hook the login form using a custom function and conditional tag.

This post includes the code which also creates a Genesis page template that includes all the parameters you can modify to customise the form if needed.

login-form

The page template also displays the login form and removes the content for logged out users. Once logged in, the template displays the full content.

3 responses to “Add Login Form Anywhere In Your Theme”

  1. Hey Brad,
    does this solution support the Jetpack Protect math captcha feature?

    1. Brad Dalton Avatar
      Brad Dalton

      Good question. Give it a try because its very easy to test the form. I couldn’t see that module in Jetpack. Is it a standard module or another plugin?

  2. […] Add Login Form Anywhere In Your Theme […]

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.