Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

  • Avatar of Bhanu1413
    Bhanu Pratap singh
    Participant

    @bhanu1413

    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 http://www.vellamind.com/wp-login.php

    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)
  • Avatar of Biswadip
    Biswadip
    Participant

    @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>
    								
    								<!--<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>
    				
    										<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>
    				
                                                                                <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" />
    										</p>
    										<input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>?register=true" />
    										<input type="hidden" name="user-cookie" value="1" />
                                                                                </div>
                                                                        </form>
                                                                </div>
Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.