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” –
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 !
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)
thanks – can be closed
Hi,
Let us know if you have any other questions or issues :)
Best regards,
John Torvik