- This topic has 2 replies, 2 voices, and was last updated 7 years, 2 months ago by .
-
Ticket
-
Dear team,
i try to do every adaption in my child theme, just in case that i don´t lose them after updating the theme. But i find many problems to do so 🙂
A common way to translate a theme in child is to put the translation files in a folder within the child theme and write this code in function.php:
/* ------------------------------------------------------------------------ */ /* Add language files in child theme /* ------------------------------------------------------------------------ */ function wiva_load_language() { load_theme_textdomain( 'unicon', get_stylesheet_directory() . '/languages' ); } add_action( 'after_setup_theme', 'wiva_load_language' );
Is there some issue that these lines don’t work for your theme?
The language files are ok. I already tested them by adding them to the parent theme.Thanks,
fraganzy
Sorry, only verified customers can view ticket replies.