Skip to:
Content
Pages
Categories
Search
Top
Bottom

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


  • 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)

  • 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.


    abcde666
    Participant

    @erich73

    Thanks a lot for your help !

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘delete word \"Username\" within \"Username-Login-box\" ?’ is closed to new replies.
Skip to toolbar