• My parent theme is installed in “business-elite” folder, and my child theme in “orastudio” folder.

    the parent theme functions.php calls
    define("WDWT_DIR", get_template_directory());
    and then
    load_theme_textdomain("business-elite", WDWT_DIR.'/languages' );

    so in my child theme I added

    add_action( 'after_setup_theme', 'my_theme_child_setup' );
     
    function my_theme_child_setup() {
        load_child_theme_textdomain( 'orastudio', get_stylesheet_directory() . '/languages' );
    }

    uploaded my landuage .mo and .po but nothing works.
    I’ve searched a lot of pages, byt my code seems correct. the child theme textdomain is correct, the path of the translation files are corrects, I tried to upload ALL .mo and.po rfom parent to child with translated strings…nothing happen.

    If I use the .mo nad.po files in the parent theme, obviously works.

    Am I missing something?

Viewing 2 replies - 1 through 2 (of 2 total)
  • This question will best be answered by the providers of the business-elite theme.

    If the textdomain is “business-elite”, shouldn’t the child theme textdomain be identical? So your child theme code should be:

    add_action( ‘after_setup_theme’, ‘my_theme_child_setup’ );
    function my_theme_child_setup() {
    load_child_theme_textdomain( ‘business-elite’, get_stylesheet_directory() . ‘/languages’ );
    }

    Hope that helps.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘child theme textdomain won’t load at ALL’ is closed to new replies.