Loading my main.js file from my child theme

On line 18 of your child theme’s functions.php you are enqueuing main.js with get_template_directory_uri(). That function is returning the path to you’re parent theme. Try replacing it with get_stylesheet_directory_uri(), which will return the path to your child theme’s root directory. I can’t blame you for not realizing the difference though. The developer.wordpress.org entry for get_template_directory_uri() … Read more

How to get custom translations from child theme to be loaded?

Actually my mistake, I was overriding the translation of the parent theme using it’s text domain for child theme, while I should have defined a different text domain for child theme and load both domains into child theme’s functions.php like this: add_action( ‘after_setup_theme’, ‘mr_load_textdomain’ ); function mr_load_textdomain(){ //for child load_theme_textdomain (MR_DOMAIN,get_stylesheet_directory().’/languages’); //for parent load_theme_textdomain (ET_DOMAIN,get_template_directory().’/lang’); … Read more