• Hi

    Have a WP 4.5 site running Customizr 3.4.20 theme.

    I’ve had a search and read the docs but cant find this particular info and how to make it stick.

    On the login page I want to change the text label above the username box currently its default “Username or Email”.

    I’m also keen to remove the back link below the login boxes.

    How can I do this in a persistent way that will stick when I update WP and the theme.

    Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter hus52

    (@hus52)

    Any tips?

    This was possible using a gettext filter in WordPress 4.4 and previous. Not sure how to do it in new version though. Previous filter does not seem to get called.

    Layson

    (@glennlaysonjr)

    If you use the following code in your themes functions.php and replace the “Your Custom Text” with whatever you are wanting.

    add_filter(  'gettext',  'register_text'  );
    add_filter(  'ngettext',  'register_text'  );
    function register_text( $translated ) {
         $translated = str_ireplace(  'Username or Email Address',  'Your Custom Text',  $translated );
         return $translated;
    }
    • This reply was modified 7 years, 9 months ago by Layson.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to change the text labels in user/pass box on login page’ is closed to new replies.