-
AuthorPosts
-
May 14, 2014 at 12:43 pm #264601
Hey,
I have an issue. i have a 2 language site. i use WPML and everything works fine beside the breadcrumbs home anchor.
The home anchor stay the same in hebrew and english. how can i set it to be different in hebrew and english?my site address is: etgar.bonsites.biz
thanks
May 14, 2014 at 5:21 pm #264774Hey bonsitemor!
The “Home” link is just a static text which is translatable with po/mo files. If you want to update/modify the po/mo translation files install this plugin ( http://wordpress.org/plugins/codestyling-localization/ ), go to Tools > Localization and select “Themes”. Then search for “Enfold” in the list and select your language and click on “Rescan” to search for all text strings. Afterwards click on “Edit” and translate the required strings from the “avia_framework” textdomain (i.e. search for “Home” and translate it). At least click the “create mo file” button next to the “Textdomain” selection dropdown (top left corner).
Best regards,
PeterMay 15, 2014 at 9:09 am #265188Hey Peter,
I tried to translate it but it shows only the hebrew words and not what i insert.
I looked in the functions-enfold but its not there. i don’t where it takes it from.
can you please help me with it?
thanks
May 15, 2014 at 12:07 pm #265228Hi!
Ok, then try to add this code to the child theme functiond.php file (or place it at the very bottom of enfold/functions.php):
add_filter('avia_breadcrumbs_args', 'avia_change_home_breadcrumb', 10, 1); function avia_change_home_breadcrumb($args){ if(defined('ICL_LANGUAGE_CODE') && ICL_LANGUAGE_CODE == "en") $args['show_home'] = 'Home'; if(defined('ICL_LANGUAGE_CODE') && ICL_LANGUAGE_CODE == "he") $args['show_home'] = 'Home (Hewbrew)'; return $args; }
Replace “Home (Hewbrew)” with your Hewbrew text and “Home” with the English text. Then save the modified functions.php and the translation should show up if you switch the language.
Regards,
PeterMay 15, 2014 at 12:30 pm #265240That works perfectly.
Thanks
May 15, 2014 at 1:20 pm #265270Hi!
Great :)
Regards,
PeterMay 15, 2015 at 10:30 am #444867Hi,
I wonder if you could also get the “You are here:” in the breadcrumbs in another languagehttp://www.amorgos-apollon.com/test/el/%CE%B4%CE%B9%CE%B1%CE%BC%CE%BF%CE%BD%CE%AE-apollon-studios/
Thanks,
anwebMay 15, 2015 at 4:40 pm #445021Kalispera!
Please install this free plugin – http://poedit.net/ and edit Greek language files inside Enfold/lang folder and change the string as needed
Regards,
Yigit -
AuthorPosts
- You must be logged in to reply to this topic.