{"id":4977,"date":"2021-04-12T14:20:34","date_gmt":"2021-04-12T14:20:34","guid":{"rendered":"https:\/\/essentials.pixfort.com\/knowledge-base\/?p=4977"},"modified":"2022-04-07T19:11:40","modified_gmt":"2022-04-07T19:11:40","slug":"how-to-translate-the-theme-from-the-child-theme","status":"publish","type":"post","link":"https:\/\/essentials.pixfort.com\/knowledge-base\/how-to-translate-the-theme-from-the-child-theme\/","title":{"rendered":"How to translate the theme from the child theme"},"content":{"rendered":"\n
Essentials theme is translation-ready. The theme includes a \/languages<\/code> directory in the root and a .pot<\/em> that includes all strings that are ready for translation.<\/p>\n\n\n\n
The typical way to translate a WordPress theme requires that you use .po<\/em> and .mo<\/em> files in the \/languages<\/code> directory of the theme. However, if you make any edits to a parent theme, including adding translation files to the theme, your edits will be overwritten (and completely lost) once the theme is updated. So this is not a good method.<\/p>\n\n\n\n
Instead, it is best to upload your translation files directly to your child theme \/languages<\/code> folder. Follow the steps below.<\/p>\n\n\n\n
1. Use Poedit (or similar tool) to create translation files.<\/strong><\/p>\n\n\n\n