Skip to:
Content
Pages
Categories
Search
Top
Bottom

delete word \"Username\" within \"Username-Login-box\" ?

  • Avatar of abcde666
    abcde666
    Participant

    @erich73

    within the Log-in-box for username, there is the word “Username”.

    I do not like to have anything already being written in that field – how to get rid of this word ?

    Do I need to jump into the core-code to remove this or can I remove it from my custom-template ?

    I do not want to have this appearing again when updating with a newer BP-version.

    Appreciate your help,

    Erich

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of Travel-Junkie
    Boris
    Participant

    @travel-junkie

    Hey Erich,

    in header.php look for this bit around line 47:

    <input type="text" name="log" id="user_login" value="<?php _e( 'Username', 'buddypress' ) ?>" onfocus="if (this.value == '<?php _e( 'Username', 'buddypress' ) ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e( 'Username', 'buddypress' ) ?>';}" />

    Use this instead:

    <input type="text" name="log" id="user_login" value="" />

    Don’t forget to copy header.php into your child theme.

    Avatar of abcde666
    abcde666
    Participant

    @erich73

    Thanks a lot for your help !

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.