Ich habe im Logo text, der geändert werden muss beim wechseln der Sprache.
Ich benutze Polylang um die Sprache zu wechseln. Wie kann ich das Bild ändern?
Hi,
Thanks for contacting us!
You can add following code to bottom of Functions.php file of your child theme – https://kriesi.at/documentation/enfold/child-theme/
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=="de-DE"){
{
$logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png";
}
return $logo;
}
If you need help, please post a link of your website and links of logos you would like to use so we can adjust the code for you.
Regards,
Yigit
thank you, that worked perfectly