Skip to:

I Want to add Registration Form in wp-login.php file

  • Hi Everyone

    As we know the default login page come after logout and by many of redirection so i decided to modify this page and i have done but now i have a empty page that’s why i want to show registration form in it. i have search for it but unable to do that. if you are not getting my problem.

    then please vist my site

    and sugeest me something if it is wrong way so please tell me about it or also tell me a right way

    Thank you

Viewing 1 replies (of 1 total)
  • Profile photo of Biswadip


    You need something like this:

    <div id="tab2_login" class="tab_content_login">
    <div width = "300px"><h3 class="topline">Register for this site!</h3>
    <!--<div id="tab1_login" class="tab_content_login" style="margin-left: 560px;width: 130px;margin-top: -20px;">Back to login</div>-->
    <p>Sign up now for the good stuff.</p>
    <form method="post" action="<?php echo site_url('wp-login.php?action=register', 'login_post') ?>" class="wp-user-form">
    <div class="username">
    <label for="user_login">Username: </label>
    <input type="text" name="user_login" value="" size="20" id="user_login" tabindex="101" />
    <div class="email">
    <label for="user_email">Your Email: </label>
    <input type="text" name="user_email" value="" size="25" id="user_email" tabindex="102" />
    	<div class="login_fields">
    	<?php do_action('register_form'); ?>
    <p class="login-submit">
    <input type="submit" name="user-submit" id="wp-submit" value="Sign up" class="user-submit" tabindex="103" />
    <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>?register=true" />
    <input type="hidden" name="user-cookie" value="1" />
Viewing 1 replies (of 1 total)
  • The topic ‘I Want to add Registration Form in wp-login.php file’ is closed to new replies.