Hi,
i have a german site (main) and a english site.
How can i put the english logo in my english site?
p.s.: i’m using polylang for translation.
Thank you for helping!
Hey Luisgasser,
Please add following code to Functions.php file 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 'fr_FR':
$logo .= "http://kriesi.at/wp-content/themes/kriesi/images/logo.png";
break;
}
return $sub;
}
and change language codes
Best regards,
Yigit