Tagged: child theme, translation
-
AuthorPosts
-
November 24, 2015 at 1:26 pm #541565
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-
This topic was modified 9 years, 11 months ago by
romano2.
November 25, 2015 at 7:21 am #542150Hi 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!
BasilisNovember 25, 2015 at 3:34 pm #542471Hello 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 ?
November 30, 2015 at 7:59 pm #544771Hi!
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 issueBest regards,
BasilisNovember 30, 2015 at 10:27 pm #544846Of course !
Here are the print screens.Thanks !
November 30, 2015 at 10:36 pm #544851Hey!
Try with the following method:
http://kriesi.at/documentation/enfold/child-theme-translations/Best regards,
JosueNovember 30, 2015 at 11:25 pm #544881Great !!!
It’s working. Many thanx, great support !
RESOLVEDNovember 30, 2015 at 11:30 pm #544885You are welcome, glad to help :)
Regards,
Josue -
This topic was modified 9 years, 11 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
