-
AuthorPosts
-
October 3, 2016 at 2:09 pm #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?
October 3, 2016 at 2:24 pm #694628Hi pajicu!
Please refer to my post here – https://kriesi.at/support/topic/different-logo-for-every-language/#post-665917
Cheers!
YigitOctober 3, 2016 at 2:32 pm #694632that code changed logo only on first page (home page). how to set it for all pages in that language?
October 3, 2016 at 2:36 pm #694634Hey!
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,
YigitOctober 3, 2016 at 2:53 pm #694641login
October 3, 2016 at 2:56 pm #694644Hi!
It is working totally fine on my end. Please flush browser cache and refresh your page a few times.
Regards,
YigitOctober 4, 2016 at 8:25 am #694917strangely, 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.
October 4, 2016 at 12:38 pm #694986Hi,
can you plz see why is that code ignoring old pages
October 4, 2016 at 12:46 pm #694992Hi,
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,
YigitOctober 4, 2016 at 1:02 pm #695006now logo disappeared but you can click on it.
October 4, 2016 at 1:05 pm #695010sorry didnt changed something in code…now it’s visible but still not working
October 5, 2016 at 2:41 pm #695501Hey!
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,
YigitOctober 5, 2016 at 2:44 pm #695504awesome it’s working
-
AuthorPosts
- The topic ‘different logo for different language’ is closed to new replies.