Okay
  Public Ticket #2144712
Login Screen Customization
Open

Comments

  • Chris Urban started the conversation

    Would like to change the text on the Login Screen for the Username field to "Username" instead of "Username or email address". 

    Putting in an email address does not work for some people, but username seems to work for everyone.

    I tried to follow the instructions in ticket #1475862 - I have no woffice-child directory. I do have a wp-content hemeswofficefunctions.php but adding the snippet there, just broke the site.

    Thanks

  •  283
    Abhishek replied

    Hello,

    That function has a typo, use the code below in your functions.php to make it work

    function woffice_login_render_form()
    {
        $redirect_url = woffice_get_redirect_page_after_login();
        $login_rest_password = woffice_get_settings_option('login_rest_password');
        // The login form    
        wp_login_form( array(        
                'redirect' => $redirect_url,
                'id_username' => 'user',
                'id_password' => 'pass',
                'label_username' => esc_attr__( 'Username' ),
        ) );
        // Password reset link
        if ($login_rest_password == "yep") : ?>
             <a href="<?php echo wp_lostpassword_url(); ?>" class="password-lost"><?php _e('Lost Password','woffice'); ?></a>
        <?php endif;
    }

    Have a nice daysmile.png

    Kind Regards,

    Abhishek 

    Want feedback on your awesome Intranet? Get yourself a beta access on Feedier.com.

    Keen on Woffice ? Please take a few seconds to give us a 5-star review on ThemeForest.

  • Chris Urban replied

    That did it! Thank you!

  •  283
    Abhishek replied

    Hello,

    Glad it works now! Don't hesitate in asking if you need further assistance.

    Have a nice daysmile.png

    Kind Regards,

    Abhishek 

    Want feedback on your awesome Intranet? Get yourself a beta access on Feedier.com.

    Keen on Woffice ? Please take a few seconds to give us a 5-star review on ThemeForest.