Tagged: child theme, translation
Hello
I would like to change the words “you are here” in the breadcrumb.
I changed the .mo et .po files with poedit, and if i upload them in /enfold/lang/ it’s working.
But I want to upload the 2 files into my Child Theme, to keep the modifications after updates.
And it’s not working.
In functions.php, I added :
function my_child_theme_locale() {
load_child_theme_textdomain( 'Enfold Child', get_stylesheet_directory() . '/languages' );
}
add_action( 'after_setup_theme', 'my_child_theme_locale' );
And in my /enfold-child/languages/ folder I uploaded the .mo et .po files.
Could you give me some advice please ?
Thanx
Hi romano2!
Here: load_child_theme_textdomain( ‘Enfold Child’,
you have to load the text domain name of the child theme ( child theme folder name ) and not the name of the child theme. can you please give it a try?
Thanks a lot
Cheers!
Basilis
Hello and thanx !
My folder’s name is ‘enfold-child’.
But this does not work either…
My functions.php code is :
<?php
/*Add your own functions here. */
function my_child_theme_locale() {
load_child_theme_textdomain( 'enfold-child', get_stylesheet_directory() . '/languages' );
}
add_action( 'after_setup_theme', 'my_child_theme_locale' );
Any alternative ?
Hi!
Can you please give us a print screen of the ftp of your child theme and what is inside the language file?
need to check further to allocate the issue
Best regards,
Basilis
Of course !
Here are the print screens.
Thanks !
Hey!
Try with the following method:
http://kriesi.at/documentation/enfold/child-theme-translations/
Best regards,
Josue
Great !!!
It’s working. Many thanx, great support !
RESOLVED
You are welcome, glad to help :)
Regards,
Josue