- This topic has 6 replies, 3 voices, and was last updated 4 years, 11 months ago by .
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › Creating custom login page?
Tagged: custom login
I see there’s a login shortcode for the login page. I also see theres php code to tell if user is logged in, but is there some code I could add to an existing login form template I have setup that would login users?
Hi are you referring to adding this plugins login form to a custom form you have set up in your site?
Hello, Yes, but I figured out if you set the name attribute of each form and input to the same name that the shortcode displays, it will work correctly?
Hi that sounds great 🙂 Can you share your solution so that others can implement this if they come across a similar situation as you.
Thank you
This will give you same functionality while allowing to customize look and feel of the login shortcode. If you already have a dummy login setup on a part of your site just simply add name attributes as needed.
<form name="swpm-login-form" method="post">
<input type="text" class="" placeholder="User Name: " name="swpm_user_name">
<input type="password" class="" placeholder="Password: " name="swpm_password">
<input type="submit" class="" value="Login" name="swpm-login">
</form>
Again thanks for the plugin! Best solution out of many I tried.
Thank you for sharing 🙂
Enjoy the plugin
Would it be possible to add an incorrect password message to this form?