Support » Plugin: Loginstyle » username label refuse to be hidden

Viewing 3 replies - 1 through 3 (of 3 total)
  • I had the same problem. You can hid the username label using css.

    @darthtater I found the label is part of the entire div, so I couldn’t find a CSS rule to hide. How did you get it to work with CSS?

    My bad. I had to put this in my functions.php file:

    /* Remove the login labels, we’ll use placeholders */
    function empty_login_labels() {
    add_filter( ‘gettext’, ‘username_change’, 20, 3 );
    function username_change( $translated_text, $text, $domain )
    {
    if (preg_match(“/Username|Password/”, $text)) {
    $translated_text = ”;
    }
    return $translated_text;
    }
    }
    add_action( ‘login_head’, ’empty_login_labels’ );

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘username label refuse to be hidden’ is closed to new replies.