Hi,
Is it possible to have different logo when I switch languages with Polylang plugin?
How can I accomplish this?
Best regards,
Jan
Hi Jan!
Please add following code to Functions.php file of your child theme in Appearance > Editor
add_filter('avf_logo','av_change_logo');
function av_change_logo($logo)
{
$lang = pll_current_language('locale');
switch ($lang) {
case 'en_US':
$logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png";
break;
case 'af':
$logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png";
break;
}
return $logo;
}
Please adjust the the logo image url.
Regards,
Yigit
Hi Yigit,
I appreciate your help with providing this code!
Best regards,
Jan
Hi!
You are welcome!
For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)
Best regards,
Yigit