• Hi!
    I’m using colormag theme.
    I created a child-theme for few customization but I can’t change child-theme textdomain to apply a different language from default one.

    I created a new functions.php file in child theme directory using load_theme_textdomain() but the function doesn’t work!

    Can anyone help me?
    thanks a lot!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,
    Loading child theme text domain is slightly different from parent theme text domain loading. Please follow this link for loading child theme text domain.

    Thanks

    Thread Starter toboRrM

    (@toborrm)

    Thanks for your suggestion, but also with load_child_theme_textdomain() function the child-theme textdomain insn’t loaded.

    Any updates on this topic yet? I can’t manage to load the language files from my child theme:

    function my_child_theme_setup() {
    load_child_theme_textdomain( ‘colormag-child’, get_stylesheet_directory() . ‘/languages’ );
    }
    add_action( ‘after_setup_theme’, ‘my_child_theme_setup’ );

    It simply doesn’t work 🙁 Any help is very much appreciated!

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

The topic ‘can't change child theme textdomain’ is closed to new replies.