Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #989927

    Hello,

    I’m translating my website in english with Polylang. I’ve found all the options except 2. Is is possible to translate my phone number in the top bar and to have 2 different logos (cause the logo contains a baseline which should be translated.
    URL below
    Tx for your answer guys,
    Nice day
    Marine

    #990120

    Hey newki75,

    Thank you for using Enfold.

    You can use the “avf_logo” to adjust the value or src of the default logo based on the current language.

    Example:

    add_filter('avf_logo','av_change_logo');
    function av_change_logo($logo){
       $lang = pll_current_language('locale');
       if ($lang == 'fr_FR') 
       {
            $logo = "LOGO URL FOR FRENCH LANGUAGE HERE";
       }
        return $logo;
    }

    For the phone, this thread might help.

    // https://kriesi.at/support/topic/header-phone-translation-white-on-header-of-mobile/#post-987863

    Best regards,
    Ismael

    #991457

    Hey Ismael,

    Both codes work perfectly ! Phone and logo. Tx a lot, u can close the issue.
    Nice day
    Marine

    #991608

    Hi Marine,

    Glad we could help :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

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