Dear Team,
I have a website in German and English, built with Enfold and Polylang. The default start site is called “Willkommen”, and you can also reach it by clicking on the logo. Then, by clicking on the british flag, it switches to the “Welcome” site accordingly. But now, when I click on the logo, it shows me an error message
“Nothing Found
Sorry, no posts matched your criteria”
Ideally, as long as the english menu is chosen, it should connect to the “welcome” site, and with the german menu, it should link to “willkommen”.
What can I do about that?
Best,
Ina
I believe that Polylang has a setting for this. That the corresponding English page links to the correct home page.
But if everything fails, you could redirect using this code snippet within the child-themes function.php:
function av_change_logo_link_on_different_languages($link){
$currentlang = get_bloginfo('language');
if($currentlang == "en-GB"){
$link = 'https://the-new-path-comes-here';
}
return $link;
}
add_filter('avf_logo_link','av_change_logo_link_on_different_languages');
Dear Guenni007,
thanks for your answer! Mentioning that it’s a setting in Polylang helped me search for it!
If anybody needs that, you can find it here:
Settings -> Reading -> Front page displays: A static page, then choose the page you want.
(Auf Deutsch:
Einstellungen -> Lesen -> Deine Homepage zeigt: Eine statische Seite, dann die entsprechende Homepage auswählen)
Thanks again!
Ina
Hi,
Glad to know that @Guenni007 was able to assist you. If you have any more questions or need further assistance, please feel free to open another thread in the forum.
Have a nice day.
Best regards,
Ismael