Created
November 26, 2013 04:53
-
-
Save techticdev/7653662 to your computer and use it in GitHub Desktop.
Wordpress Custom Registration Form
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Credits : http://thecodegenie.com/tutorials/wordpress-user-registration-and-login-forms/ --> | |
| <div style="display:none;"> | |
| <div id="sign_up" class="modal"> | |
| <h2><strong>Sign up</strong> for yourwebsitename</h2> | |
| <form action="<?php echo site_url('wp-login.php?action=register', 'login_post') ?>" class="user_new" id="user_new" method="post"> | |
| <input id="user_login" name="user_login" size="30" type="text" placeholder="Select a username"> | |
| <input id="user_email" name="user_email" size="30" type="text" placeholder="Email address"> | |
| <?php do_action('register_form'); ?> | |
| <input id="register" type="submit" value="Sign up"> | |
| </form> | |
| <p>A password will be emailed to you</p><br> | |
| <p>Already a user? <a href="#sign_in" class="fancybox">Sign in</a>!</p> | |
| </div> | |
| </div> | |
| <!-- Do not change the name and id of input fields. They must be user_email and user_login --> | |
| <!-- After registration, users are redirected to the login page of your website which looks something like www.yourwebsite.com/wp-login.php. Place Sign Up link in header.php the same way we did sign in link. --> | |
| <a href="#sign_up">Sign up!</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment