Forum Replies Created
-
AuthorPosts
-
Hi Yigit,
Thanks. I needed to re-save the menu in order to have it correct.
Best regards
- This reply was modified 7 years, 6 months ago by mustmedia.
Please see above.
Hi,
- I add the code to functions.php in child theme
- I activate the child theme
- The error is that I see the code in my backend and also on top of the website frontend.
I tried this code from thread https://kriesi.at/support/topic/different-logo-for-every-language/:
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 'af': $logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png"; break; } return $logo; }
I tried this code from thread https://kriesi.at/support/topic/different-logos-in-different-languages/:
add_filter('avf_logo','av_change_logo'); function av_change_logo($logo) { $currentlang = get_bloginfo('language'); if($currentlang=="en-US") { $logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png"; } if($currentlang=="fr-FR"){ { $logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png"; } return $logo; }
And I tried this code from thread https://kriesi.at/support/topic/polylang-logo-changer/:
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 'af': $logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png"; break; } return $logo; }
Please find in private a temporary account for WP and FTP
- This reply was modified 7 years, 6 months ago by mustmedia.
Thanks!
Hi Josue,
Hero! This works excellent.
Thank you very much mate!
Hi Ismael,
Thanks for your reply.
Okay, but can’t we think of some kind of workaround? For example, before upload I remove the lines which generates these different sizes and after finishing converting the pdf to images I put these lines back in place.
Cheers.
-
AuthorPosts