Title: Change a button
Last modified: August 30, 2016

---

# Change a button

 *  [mmarianne](https://wordpress.org/support/users/mmarianne/)
 * (@mmarianne)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/please-select-button/)
 * Hi.
    I wan’t to change the ” — Please select — ” button on my website, but I 
   can’t find it. I’ve found it in the danish translation, but it won’t change. 
   Anyone who can help? I’m pretty new to Loco translate.

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

 *  [WEN Solutions](https://wordpress.org/support/users/wen-solutions/)
 * (@wen-solutions)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/please-select-button/#post-6715435)
 * You can use the function below. You can see ‘Name’ has been changed to ‘First
   Name’. Similarly you can change any text on your theme to any other text. Thanks!
 *     ```
       add_filter( 'gettext', 'theme_change_comment_field_names', 20, 3 );
       function theme_change_comment_field_names( $translated_text, $text, $domain ) {
   
           if ( is_singular() ) {
   
               switch ( $translated_text ) {
   
                   case 'Name' :
   
                       $translated_text = __( 'First Name', 'theme_text_domain' );
                       break;
               }
   
           }
   
           return $translated_text;
       }
       ```
   
 *  [veerlevw](https://wordpress.org/support/users/veerlevw/)
 * (@veerlevw)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/please-select-button/#post-6715547)
 * Hello, I tried this but I return HTTP-500 fault on my page.
    I wanted to change
   the button Know more. I copied your function and changed ‘Name’ and ‘First Name’
   I’ve put in a function.php (I copied the origanal one and placed it in my childtheme)
   What did do wrong? Mmmarianne, did you have the same problem?

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

The topic ‘Change a button’ is closed to new replies.

## Tags

 * [l10n](https://wordpress.org/support/topic-tag/l10n/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [veerlevw](https://wordpress.org/support/users/veerlevw/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/please-select-button/#post-6715547)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
