-
AuthorPosts
-
March 26, 2017 at 10:33 am #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 8 years, 7 months ago by
John Torvik.
March 27, 2017 at 1:58 pm #767420on 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 8 years, 7 months ago by
Guenni007.
March 28, 2017 at 7:57 am #767934ok 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)March 28, 2017 at 8:19 am #767949March 30, 2017 at 5:00 pm #769546thanks – can be closed
March 30, 2017 at 8:34 pm #769609Hi,
Let us know if you have any other questions or issues :)
Best regards,
John Torvik -
This topic was modified 8 years, 7 months ago by
-
AuthorPosts
- The topic ‘Enfold 4.0.3. a bit buggy’ is closed to new replies.
