Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #694615

    Hi,

    I am using polylang plugin for multilingual site. How to set up two different logo, one for english and one for serbian part?

    #694628

    Hi pajicu!

    Please refer to my post here – https://kriesi.at/support/topic/different-logo-for-every-language/#post-665917

    Cheers!
    Yigit

    #694632

    that code changed logo only on first page (home page). how to set it for all pages in that language?

    #694634

    Hey!

    No actually it should change logos depending the language. If you need further assistance, please create a temporary admin login and post it here privately. A link to logos you would like to use would help as well

    Regards,
    Yigit

    #694641

    login

    #694644

    Hi!

    It is working totally fine on my end. Please flush browser cache and refresh your page a few times.

    Regards,
    Yigit

    #694917

    strangely, yes its working but only for new created pages and there translation, like that code you provide me is not working for old pages. Is there solution for old pages?

    you can try this link http://yugodom.com/accommodation/ and then click on [SRP] (dropdown menu [ENG]) you’ll see that logo is the same, but if you crate new page both eng and srp code is doing the job.

    #694986

    Hi,

    can you plz see why is that code ignoring old pages

    #694992

    Hi,

    That is actually transparent logo. Please try adding following code to Quick CSS as well

    add_filter('avf_logo_subtext', 'kriesi_logo_addition');
    function kriesi_logo_addition($sub) {
    	$lang = pll_current_language('locale');
    
    	switch ($lang) {
        case 'en_US':
            $sub .= "http://kriesi.at/wp-content/themes/kriesi/images/logo.png";
            break;
        case 'af':
            $sub .= "http://kriesi.at/wp-content/themes/kriesi/images/logo.png";
            break;
    	}
        return $sub;
    }

    and adjust as needed

    Best regards,
    Yigit

    #695006

    now logo disappeared but you can click on it.

    #695010

    sorry didnt changed something in code…now it’s visible but still not working

    #695501

    Hey!

    I added the code into functions.php file once again and then added following code to Quick CSS

    html[lang="sr-RS"] .av_header_transparency .logo img.alternate {
        display: none;
    }
    html[lang="sr-RS"] .logo .subtext img {
        position: absolute;
        z-index: 1;
        top: 0;
        left: 0;
    }

    Please review your website now

    Regards,
    Yigit

    #695504

    awesome it’s working

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘different logo for different language’ is closed to new replies.