• Good morning. I ask your help to find the best solution to be able to translate “SEARCH”, “OLDERS ARTICLES” and “NEWER ARTICLES” buttons text.

    One more question: I will soon improve woocommerce in my site and I wish know if you have any advices or known issues for fashionista theme.

    I apologize for my English.

    Thank you for your help

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

    You can do this by adding the following codes to the theme’s functions.php file. Here I would suggest you to make the changes using child theme, so that this change along with other changes made will stay preserved even after theme updates

    function se_gettext( $translated_text, $untranslated_text, $domain ) {
    	if ( $untranslated_text === '<span class="meta-nav">&larr;</span> Older Articles' )
    		$translated_text = '<span class="meta-nav">&larr;</span> Older News';
    
    	if ( $untranslated_text === 'Newer Articles <span class="meta-nav">&rarr;</span>' )
    		$translated_text = 'Newer News <span class="meta-nav">&rarr;</span>';
    
    	return $translated_text;
    }
    add_filter( 'gettext', 'se_gettext', 10, 3 );

    The above changes Artciles to News
    in both the tabs

    Hope it helps!!

    Thanks

    Thread Starter Carlo78

    (@carlo78)

    Thank you very much! You are very gentle. Any suggestion how to translate also “SEARCH” in search form and “PREVIOUS ARTICLE” and “NEXT ARTICLE”.

    Thank you for your patience!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Translate buttons’ is closed to new replies.