Hi,
I want to use different logos for different langages. My web site is in two languages, turkish and english. I wan to use different logos for turkish and english sites seperately.
Which code do I have to write and in which file?
thanks
Merhabalar!
Please add following code to Functions.php file in Appearance > Editor
add_filter('avf_logo','av_change_logo');
function av_change_logo($logo)
{
if(ICL_LANGUAGE_CODE=='en')
{
$logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png";
}
elseif(ICL_LANGUAGE_CODE=='tr')
{
$logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png";
}
return $logo;
}
I assume you are using WPML? :)
Best regards,
Yigit
Merhaba,
https://polylang.wordpress.com/ bu adresteki plugini kullanıyorum, fark eder mi? Gönderdiğiniz kod bu pluginde çalışır mı?
Teşekkürler
Merhabalar,
Lutfen kodu assagidakine degistirip oyle deneyin
add_filter('avf_logo','av_change_logo');
function av_change_logo($logo)
{
$currentlang = get_bloginfo('language');
if($currentlang=="tr-TR")
{
$logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png";
}
else
{
$logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png";
}
return $logo;
}
Ilk gorsel Turkce site icin ikinciside diger dil icin
Cheers!
Yigit
Çalıştı teşekkürler