Title: Problems with overwrite!
Last modified: October 1, 2019

---

# Problems with overwrite!

 *  [bicalho](https://wordpress.org/support/users/bicalho/)
 * (@bicalho)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/problems-with-overwrite/)
 * I have a problem about my child theme (file highstake-child). I need to translate
   the blog from english to portuguese but the child theme do not overwrite the 
   modifications that I wrote.
 * File inc/extras.php
    Original:
 *     ```
       function highstake_lite_extend_archive_title( $title ) {
       	if ( is_category() ) {
       		$title = sprintf( esc_html__( 'posts in %s category', 'highstake-lite' ), '<span>' . single_cat_title( '', false ) . '</span>' );
       	} elseif ( is_tag() ) {
       		$title = sprintf( esc_html__( 'posts in %s tag', 'highstake-lite' ), '<span>' . single_tag_title( '', false ) . '</span>' );
       	} elseif ( is_author() ) {
       		$title = sprintf( esc_html__( 'posts by %s', 'highstake-lite' ), '<span>' . get_the_author() . '</span>' );
       	} elseif ( is_search() ) {
       		$title = sprintf( esc_html__( 'Search Results for: %s', 'highstake-lite' ), '<span>' . get_search_query() . '</span>' );
       	} else {
       		$title = esc_html__( 'Latest News', 'highstake-lite' );
       	}
       	return $title;
       }
       ```
   
 * Translated:
 *     ```
       function highstake_lite_extend_archive_title( $title ) {
       	if ( is_category() ) {
       		$title = sprintf( esc_html__( 'Publicações pela categoria %s', 'highstake-lite' ), '<span>' . single_cat_title( '', false ) . '</span>' );
       	} elseif ( is_tag() ) {
       		$title = sprintf( esc_html__( 'Publicações pela tag %s', 'highstake-lite' ), '<span>' . single_tag_title( '', false ) . '</span>' );
       	} elseif ( is_author() ) {
       		$title = sprintf( esc_html__( 'Publicações por %s', 'highstake-lite' ), '<span>' . get_the_author() . '</span>' );
       	} elseif ( is_search() ) {
       		$title = sprintf( esc_html__( 'Resultado da Pesquisa: %s', 'highstake-lite' ), '<span>' . get_search_query() . '</span>' );
       	} else {
       		$title = esc_html__( 'Últimas notícias', 'highstake-lite' );
       	}
       	return $title;
       }
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblems-with-overwrite%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘Problems with overwrite!’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/highstake-lite/1.0.4/screenshot.
   jpg)
 * Highstake Lite
 * [Support Threads](https://wordpress.org/support/theme/highstake-lite/)
 * [Active Topics](https://wordpress.org/support/theme/highstake-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/highstake-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/highstake-lite/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [bicalho](https://wordpress.org/support/users/bicalho/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/problems-with-overwrite/)
 * Status: not resolved