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
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
Hey Ismael,
Both codes work perfectly ! Phone and logo. Tx a lot, u can close the issue.
Nice day
Marine
Hi Marine,
Glad we could help :)
If you need further assistance please let us know.
Best regards,
Victoria