Wordpress Frontend Login Form Code

Leave a Comment
If you want design Wordpress Frontend Login Form. Please use following HTML markup and Bootsrap css.

I made Tutorial on this, so refer following tutorail to design your  Wordpress Frontend Login Form.

 Login, Sing Up & Forget Pasword Modal Form Using Bootstrap

If you want to integrate Wordpress Frontend login without using Plugin, please refer following tutorial.

Light Weight WordPress Frontend Ajax Login and Registration

<!-- -Login Modal -->
<div class="modal fade" id="loginModal" tabindex="-1" role="dialog" aria-labelledby="loginModalLabel" aria-hidden="true">
 <div class="modal-dialog">
     <div class="modal-content login-modal">
        <div class="modal-header login-modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
          <h4 class="modal-title text-center" id="loginModalLabel">USER AUTHENTICATION</h4>
        </div>
        <div class="modal-body">
         <div class="text-center">
          <div role="tabpanel" class="login-tab">
        <!-- Nav tabs -->
        <ul class="nav nav-tabs" role="tablist">
          <li role="presentation" class="active"><a id="signin-taba" href="#home" aria-controls="home" role="tab" data-toggle="tab">Sign In</a></li>
          <li role="presentation"><a id="signup-taba" href="#profile" aria-controls="profile" role="tab" data-toggle="tab">Sign Up</a></li>
          <li role="presentation"><a id="forgetpass-taba" href="#forget_password" aria-controls="forget_password" role="tab" data-toggle="tab">Forget Password</a></li>
        </ul>
     
        <!-- Tab panes -->
       <div class="tab-content">
          <div role="tabpanel" class="tab-pane active text-center" id="home">
           &nbsp;&nbsp;
           <span id="login_fail" class="response_error" style="display: none;">Loggin failed, please try again.</span>
           <div class="clearfix"></div>
           <form>
         <div class="form-group">
             <div class="input-group">
                <div class="input-group-addon"><i class="fa fa-user"></i></div>
                <input type="text" class="form-control" id="login_username" placeholder="Username">
             </div>
             <span class="help-block has-error" id="email-error"></span>
           </div>
           <div class="form-group">
             <div class="input-group">
                <div class="input-group-addon"><i class="fa fa-lock"></i></div>
                <input type="password" class="form-control" id="password" placeholder="Password">
             </div>
             <span class="help-block has-error" id="password-error"></span>
           </div>
           <button type="button" id="login_btn" class="btn btn-block bt-login" data-loading-text="Signing In....">Login</button>
           <div class="clearfix"></div>
           <div class="login-modal-footer">
            <div class="row">
           <div class="col-xs-8 col-sm-8 col-md-8">
            <i class="fa fa-lock"></i>
            <a href="javascript:;" class="forgetpass-tab"> Forgot password? </a>
           
           </div>
           
           <div class="col-xs-4 col-sm-4 col-md-4">
            <i class="fa fa-check"></i>
            <a href="javascript:;" class="signup-tab"> Sign Up </a>
           </div>
          </div>
           </div>
        </form>
          </div>
          <div role="tabpanel" class="tab-pane" id="profile">
              &nbsp;&nbsp;
              <span id="registration_fail" class="response_error" style="display: none;">Registration failed, please try again.</span>
           <div class="clearfix"></div>
           <form>
         <div class="form-group">
             <div class="input-group">
                <div class="input-group-addon"><i class="fa fa-user"></i></div>
                <input type="text" class="form-control" id="username" placeholder="Username">
             </div>
             <span class="help-block has-error" data-error='0' id="username-error"></span>
           </div>
           <div class="form-group">
             <div class="input-group">
                <div class="input-group-addon"><i class="fa fa-at"></i></div>
                <input type="text" class="form-control" id="remail" placeholder="Email">
             </div>
             <span class="help-block has-error" data-error='0' id="remail-error"></span>
           </div>
           <button type="button" id="register_btn" class="btn btn-block bt-login" data-loading-text="Registering....">Register</button>
         <div class="clearfix"></div>
         <div class="login-modal-footer">
            <div class="row">
           <div class="col-xs-8 col-sm-8 col-md-8">
            <i class="fa fa-lock"></i>
            <a href="javascript:;" class="forgetpass-tab"> Forgot password? </a>
           
           </div>
           
           <div class="col-xs-4 col-sm-4 col-md-4">
            <i class="fa fa-check"></i>
            <a href="javascript:;" class="signin-tab"> Sign In </a>
           </div>
          </div>
           </div>
        </form>
          </div>
          <div role="tabpanel" class="tab-pane text-center" id="forget_password">
           &nbsp;&nbsp;
              <span id="reset_fail" class="response_error" style="display: none;"></span>
            <div class="clearfix"></div>
            <form>
          <div class="form-group">
              <div class="input-group">
                 <div class="input-group-addon"><i class="fa fa-user"></i></div>
                 <input type="text" class="form-control" id="femail" placeholder="Email">
              </div>
              <span class="help-block has-error" data-error='0' id="femail-error"></span>
            </div>
            
            <button type="button" id="reset_btn" class="btn btn-block bt-login" data-loading-text="Please wait....">Forget Password</button>
          <div class="clearfix"></div>
          <div class="login-modal-footer">
             <div class="row">
            <div class="col-xs-6 col-sm-6 col-md-6">
             <i class="fa fa-lock"></i>
             <a href="javascript:;" class="signin-tab"> Sign In </a>
            
            </div>
            
            <div class="col-xs-6 col-sm-6 col-md-6">
             <i class="fa fa-check"></i>
             <a href="javascript:;" class="signup-tab"> Sign Up </a>
            </div>
           </div>
            </div>
         </form>
           </div>
         </div>
      </div>
           
          </div>
         </div>
         
      </div>
    </div>
  </div>
  <!-- - Login Model Ends Here -->

0 comments:

Post a comment