Home Forums Unicon Translation in Child Theme

Home Forums Unicon Translation in Child Theme

  • Creator
    Ticket
  • #86800
    uniganzy
    Buyer

    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.