Home › Forums › Gillion Theme › These translation issues
Home › Forums › Gillion Theme › These translation issues
I have uploaded and activated Gillion theme (creative slider) and have made the required changes. I have translated the template through this formula https://colorlib.com/wp/how-to-translate-wordpress-theme/
However, some aspects have remained untranslated. For instance, the author page as you can see here (see the title ‘Author:’) is still in English http://www.respublica.gr/author/michail-theodosiadis/ or even the Search results http://www.respublica.gr/?s=%CE%BA%CE%BF%CE%BD%CF%84%CE%BF%CE%B3%CE%B9%CF%8E%CF%81%CE%B3%CE%B7%CF%82 (see the ‘Search Results for’).
Do you have any idea how to translate these as well? Perhaps through the php code? Not sure which file I have to edit…
Thanks in advance!
Hi @mtheo001,
I hope you are well today and thank you for your question.
The string “Search Results for” is translation ready as displayed below that is added in the theme file /gillion/inc/templates/titlebar.php on line number 142.
printf(esc_html__('Search Results for "%s"', 'gillion'), get_search_query());
The string “Author:” is displayed using the WordPress function get_the_archive_title as described below.
https://developer.wordpress.org/reference/functions/get_the_archive_title/#source
Best regards,
Shufflehound team
Thank you very much.
I have managed to fix the ‘search results’.
Then I edited the get_the_archive_title from my WP files, but still no change. Any ideas?
I fixed it differently… I used the plugin ‘Replace Word’, which automatically replaces a word with one you like. So this was one way to work this out… so far the problem is solved!
Awesome great to see you got that solved.
Please advise if you have more questions.
Have a fantastic day!