Hi, The main logo of this multilingual website (translated with Polylang) have to change when switching from a language to another (for the moment english and french but 4 more languages are coming soon).
For the moment, I've duplicated the function nectar_logo_output in the child theme functions.php under another name and copy to child theme then modify includes/partials/header/header.php to call my custom function. But it seems very complicated (and not stable on future updates) is there a better way to do that ?
Polylang allows to customize urls of logos (see capture joined) but it doen't work.
If I disable my modifications to force logo and select French language on wpadmin bar, before changing the logo in Salient/Header navigation/Logo & general styling, it's also changed for English language (default language).
Hi,
The main logo of this multilingual website (translated with Polylang) have to change when switching from a language to another (for the moment english and french but 4 more languages are coming soon).
For the moment, I've duplicated the function nectar_logo_output in the child theme functions.php under another name and copy to child theme then modify includes/partials/header/header.php to call my custom function. But it seems very complicated (and not stable on future updates) is there a better way to do that ?
Polylang allows to customize urls of logos (see capture joined) but it doen't work.
Regards,
F. Spiesser
Hi There,
Try selecting the Language from the WP Admin Bar in the Backend Dashboard and try setting a different logo and check .
Kind Regards.
Hi Andrew,
It's not working.
If I disable my modifications to force logo and select French language on wpadmin bar, before changing the logo in Salient/Header navigation/Logo & general styling, it's also changed for English language (default language).
Regards,
Francis
Hi There,
How about you try to use WPML which has an option to set Different Theme Options for each Language . Also see: https://wpml.org/documentation/theme-compatibility/create-multilingual-wordpress-websites-using-the-salient-theme-and-wpml/ .
Also see: https://wpml.org/documentation/theme-compatibility/create-multilingual-wordpress-websites-using-the-salient-theme-and-wpml/#translating-theme-texts-plugins-other-places .
Thanks
As this website is now in production, I will not change translation system.
I keep this information for the next time.
Thanks for anwsering.
Regards,
F. Spiesser