Login popup (forgotten password)

Responsive WordPress theme for musicians, bands, artists - easy to configure and various theme features.
GK User
Thu Feb 13, 2014 1:57 pm
The login popup doesn't provide a "forgotten password?" link, which is bound to be needed at some point! ;)
I realise if you enter a false username/password it drops to the WordPress login page, and then the link, but that's not obvious to most.

Is there a hook/filter for the popup login box so that I can add a "forgotten password?" link (or an option I've not seen)?

Many thanks,
Simon
User avatar
Fresh Boarder

GK User
Thu Feb 13, 2014 3:21 pm
Hello,

You have to edit Rockwall/layouts/login.php file and add this code:
Code: Select all
<nav class="small">
         <ul>
            <li>
               <a href="<?php echo home_url(); ?>/wp-login.php?action=lostpassword" title="<?php _e('Password Lost and Found', GKTPLNAME); ?>"><?php _e('Lost your password?', GKTPLNAME); ?></a>
            </li>
            <li>
               <a href="<?php echo home_url(); ?>/wp-login.php?action=register" title="<?php _e('Not a member? Register', GKTPLNAME); ?>"><?php _e('Register', GKTPLNAME); ?></a>
            </li>
         </ul>
      </nav>

after:
Code: Select all
<?php
            wp_login_form(
               array(
                  'echo' => true,
                  'form_id' => 'loginform',
                  'label_username' => __( 'Username', GKTPLNAME ),
                  'label_password' => __( 'Password', GKTPLNAME ),
                  'label_remember' => __( 'Remember Me', GKTPLNAME ),
                  'label_log_in' => __( 'Log In', GKTPLNAME ),
                  'id_username' => 'user_login',
                  'id_password' => 'user_pass',
                  'id_remember' => 'rememberme',
                  'id_submit' => 'wp-submit',
                  'remember' => true,
                  'value_username' => NULL,
                  'value_remember' => false
               )
            );
         ?>

BTW I'll add this option to the next theme update. Thanks for your feedback.
User avatar
Moderator

GK User
Thu Feb 13, 2014 3:28 pm
Many thanks, all works great.
(For info, I also moved the links over to the right a bit so they aren't squashed against the button).
User avatar
Fresh Boarder


cron