Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #732549

    Hi,

    How to change category word “all” to other language but keep word “all” for english?

    I have multilingual website and i want to change word “all” to other languages. Like you can change logo for different languages.

    thanks

    Uroš

    • This topic was modified 7 years, 6 months ago by Uros.
    #733242

    Hey guys, any help here plz?

    #733250

    Hi!

    Can you please post a link to your page and elaborate on the changes you would like to make?

    Cheers!
    Yigit

    #733269

    Lets try this…..

    How to combine this two codes? instead of LOGO…how to set portfolio category “ALL” to change with different language?

    add_filter(‘avf_portfolio_sort_first_label’,’new_first_label’);
    function new_first_label() {
    $first_item_name = “New All Text”;
    return $first_item_name;
    }

    AND

    add_filter(‘avf_logo’,’av_change_logo’);
    function av_change_logo($logo)
    {
    $lang = pll_current_language(‘locale’);

    switch ($lang) {
    case ‘en_GB’:
    $logo = “http://testdomen.xyz/wp-content/uploads/2016/12/logo-manji-1.png”;
    break;
    case ‘sr_RS’:
    $logo = “http://testdomen.xyz/wp-content/uploads/2017/01/Logo_srp112.png”;
    break;
    }

    return $logo;
    }

    #733309

    Hey!

    Please add following code to Functions.php file

    add_filter('avf_portfolio_sort_first_label','new_first_label');
    function new_first_label() {
    $lang = pll_current_language('locale');
    
    switch ($lang) {
    case 'en_GB':
    $first_item_name = "New All Text in en_GB";
    break;
    case 'sr_RS':
    $first_item_name = "New All Text in sr_RS";
    break;
    }
    return $first_item_name;
    }

    Best regards,
    Yigit

    #733516

    perfect!

    thanks!

    #733557

    I need one more change for different language

    View post on imgur.com

    Here is pic with what i want to change with different language

    it is blog posts element with turned on title, excerpt and read more button….i want to change text in read more button with different language

    thank you

    Uroš

    #733741

    Hey guys any help here…just this last one to change?

    #734748

    Hi,

    use Loco Translate or Poedit for it.

    Best regards,
    Andy

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