Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #766903

    Next one and also see: Link

    if i use these code-snippets to replace Original Files in Enfold Parent Themes there is something different to 4.0.2 and former Versions.
    Both worked very well before (same thing with php Shortcodes – see link above)

    both code-snippets i usually used :

    add_action('after_setup_theme', 'avia_lang_setup');
    function avia_lang_setup()
    {
    $lang = get_stylesheet_directory()  . '/lang';
    load_child_theme_textdomain('avia_framework', $lang);
    }

    or

    add_action('after_setup_theme', 'avia_lang_setup');
    function avia_lang_setup() {
        remove_action('after_setup_theme', 'avia_lang_setup');
        $lang = get_stylesheet_directory() . '/lang';
        load_theme_textdomain('avia_framework', $lang);
    }

    After that i have no german translations on my enfold backend.
    i tried a lot switched between formal “Du” and informal “Sie” –

    • This topic was modified 7 years, 9 months ago by John Torvik.
    #767420

    on 4.0.4. the other problems seems to be ok again.
    shortcodes in child-theme folder shortcodes are accepted and do work with there changes!

    langfiles in lang folder of child-themes are still not welcome !

    • This reply was modified 7 years, 9 months ago by Guenni007.
    #767934

    ok in theme dokumentation there is a new snippet but i renamed it a bit to be clearer what it does:

    function overwrite_language_parent_theme_files() {
        $lang = get_stylesheet_directory().'/lang';
        return $lang;
    }
    add_filter('ava_theme_textdomain_path', 'overwrite_language_parent_theme_files');

    all mods are (an me for long time too) prefer those codes at the beginning.
    The code here works now with new 4.0.4. definitly ! – so forget the other two (former common advices)

    #767949

    Hi,

    I didn’t notice that filter. Thanks for the info.

    Best regards,
    Ismael

    #769546

    thanks – can be closed

    #769609

    Hi,

    Let us know if you have any other questions or issues :)

    Best regards,
    John Torvik

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Enfold 4.0.3. a bit buggy’ is closed to new replies.