Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #391298

    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

    #391322

    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.