Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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

    #264774

    Hey 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,
    Peter

    #265188

    Hey 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

    #265228

    Hi!

    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,
    Peter

    #265240

    That works perfectly.

    Thanks

    #265270

    Hi!

    Great :)

    Regards,
    Peter

    #444867

    Hi,
    I wonder if you could also get the “You are here:” in the breadcrumbs in another language

    http://www.amorgos-apollon.com/test/el/%CE%B4%CE%B9%CE%B1%CE%BC%CE%BF%CE%BD%CE%AE-apollon-studios/

    Thanks,
    anweb

    #445021

    Kalispera!

    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

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.