• Hi all,

    I am starting to get desparate so I really hope the community can help me here.

    I have created a child theme for one of the elegantthemes.
    (This childtheme does not use a .pot file)

    Since I work with a wpmu setup and I run multiple sites on this I cannot change the wp-config file only the childtheme files.

    I have been reading the wp codex and found this:

    https://codex.www.ads-software.com/Function_Reference/load_child_theme_textdomain

    And tried to play arround with the $domain and $path in a new functions.php file which I created in the childtheme.

    However it does not translate..

    This is the closest I come to what I think should be working:

    <?php
    /**
     * Setup My Child Theme's textdomain.
     *
     * Declare textdomain for this child theme.
     * Translations can be filed in the /lang/ directory.
     */
    add_action( 'after_setup_theme', 'my_child_theme_setup' );
    function my_child_theme_setup(){
        load_child_theme_textdomain( 'DeepFocus-Olsberg', get_stylesheet_directory() . '/lang' );
    }
    ?>

    Please anyone help ??
    Thanks

    [ Please don’t bump your topic, it is not permitted on these forums ]

  • The topic ‘Childtheme .mo files PLSSS HELP’ is closed to new replies.