searchform.php – translation of Search placeholder doesn't work
-
I was unable to translate the search box placeholder. Then I changed this line in searchform.php:
<input type="text" class="field" name="s" value="<?php echo esc_attr( get_search_query() ); ?>" id="s" placeholder="<?php esc_attr_e( 'Search …', 'thebox' ); ?>" />
…to this:
<input type="text" class="field" name="s" value="<?php echo esc_attr( get_search_query() ); ?>" id="s" placeholder="<?php esc_attr_e( 'Search', 'thebox' ); ?> …" />
Now the translation is working well.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘searchform.php – translation of Search placeholder doesn't work’ is closed to new replies.