Problems with child theme translation

Hi, I’m facing a problem with translations of my child theme. I have followed your instructions that normally work well.

But in this new site I can’t see the terms translated.

I have created as aslways a languages folder inside my x-child folder and put the .po and .mo files.

Then, I have added the function for translation in functions.php:

add_action( 'after_setup_theme', 'my_child_theme_lang' );

function my_child_theme_lang() {
 load_child_theme_textdomain( '__x__', get_stylesheet_directory() . '/languages' );

I can’t understand what is the problem. Can you help me invetigate?

Thank you so much


Try to delete your mo file then recompile a new one and upload it to your site.

If that doesn’t help, please provide us your ftp login Secure Note


This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.