March 1, 2016 at 2:03 pm #43055blog1Participant
Hi, I would like to find out where I can change words.
F.e. “Search Results” and “No Posts Found.”
(-> It’s not possible in the “search.php” or in the “searchform.php”.)
F.e. “Error 404-Page NOT Found. It seems we can’t find what you’re looking for. This might be because: You have typed the web address incorrectly, or the page you were looking for may have been moved, updated or deleted. Please try the following instead: Check for a mis-typed URL error, then press the refresh button on your browser.”
(-> It’s not possible in the “404.php”.)
Thanks for help.March 2, 2016 at 10:12 am #43073
To translate the words into your own language you need to create a .po and .mo file and that file must be added inside the language folder of child theme.
View more about language translation.
Thank you!April 19, 2016 at 8:22 am #443198beastParticipant
can you elaborate a little bit more? I did create the po file but do I need to define somewhere in the code to use my let’s say hr_HR instead of ru_RUApril 19, 2016 at 10:27 am #44324
Yes sure. You need to create a .po and .mo file and it should be kept inside the language directory. To work this language goto dashboard -> settings -> general -> site language and choose your language.
Note: If you create a child theme then while updating to new version your customized code will not be lost. If you directly add in the language directory of parent theme then each and every time while updating to new version all your file will be lost. So you need to add the language file again. So the best way is to create a child theme.
Thank you!April 20, 2016 at 2:34 pm #443648beastParticipant
thank you got it working 🙂
I always use child theme no worries ;=)April 21, 2016 at 10:01 am #44382
That’s great 8beast
- You must be logged in to reply to this topic.