• Resolved meiandning

    (@meiandning)


    Current login form labels are:

    Username or Email Address

    Password

    I want to change labels to:

    Firstname_Surname

    Date of Birth (MM/DD/YY)

    How do I do this please?

    thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Caseproof

    (@caseproof)

    Hi @meiandning

    You can add this code at the end of your theme’s functions.php file:

    function gettext_filter($translation, $orig, $domain) {
        switch($orig) {
            case 'Username or Email Address':
                $translation = "Firstname_Surname";
                break;
            case 'Password':
                $translation = 'Date of Birth (MM/DD/YY)';
                break;
        }
        return $translation;
    }
    add_filter('gettext', 'gettext_filter', 10, 3);

    Best

    Thread Starter meiandning

    (@meiandning)

    works great! thank you very much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change login labels’ is closed to new replies.