Tagged: child theme, enfold, theme update, update
Hello,
I was wondering, does the Theme Update in the wp-admin work when one is using a Child Theme?
The last update didn’t occur to me.
Yes, afaik it should also work with a child theme. However I can’t test the auto update feature and I decided to marked this thread for Kriesi. If he can find a bug he’ll fix it in the next update.
Worked for me, but I didn’t expect the update to trash my french translation.
Good thing I had a backup.
Is there a way to store the translation in the child theme’s folder ? (I guess not)
You can use following function: http://codex.wordpress.org/Function_Reference/load_child_theme_textdomain
Create a “lang” folder inside your child theme directory, then upload your mo/po files into this folder. At least add following code to the child theme functioons.php
add_action('after_setup_theme', 'avia_lang_setup');
function avia_lang_setup()
{
$lang = get_stylesheet_directory() . '/lang';<br />
load_child_theme_textdomain('avia_framework', $lang);
}
thx Dude