• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2665

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

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.

Register for full access

Reader Interactions

Comments

  1. Konceptuel says

    June 11, 2015 at 11:28 am

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

    Log in to Reply
    • Brad Dalton says

      June 11, 2015 at 11:41 am

      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?

      Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems