How to add “lang” folder with translations to child theme? So that when I update enfold(parent) theme my translations will not change with new translations
Hi szharas!
Thank you for coming back.
Pls. refer to this post:
http://codex.wordpress.org/Function_Reference/load_child_theme_textdomain
In functions.php of the child theme put the following:
add_action( 'after_setup_theme', 'my_child_theme_setup' );
function my_child_theme_setup() {
load_child_theme_textdomain( 'my_child_theme', get_stylesheet_directory() . '/languages' );
}
Create a folder languages in the child theme directory and put your files in there.
Best regards,
Günter