Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #450456

    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

    #450715

    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

    #451175

    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

    #451180

    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

    #451184

    Çalıştı teşekkürler

    #451187

    Rica ederim, yardimci olabildigimize sevindim. Baska sorunuz veya sorununuz olursa lutfen yazmaktan cekinmeyin :)

    Cheers!
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Logo – Language’ is closed to new replies.