Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #801920

    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!

    #802217

    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.