Archived topic
Change logo per language with WPML
5 replies · Started by Gabriel on March 22, 2022
I have two logos that I want to translate. One is set in a header layout with merge header enabled. Translating this element worked fine by adding a regular translation of the element post with WPML.
What doesn't work is translating the logo set in the customizer, used on pages without the header element and when scrolling. I have managed to add the custom_logo for my child theme to string translation and specified post id for alternative logo as per WPML's instructions, but it still uses the (Swedish) logo set in the customizer for all languages.
Hi there,
Try this solution:
https://docs.generatepress.com/article/generate_logo/#examples
Thanks. That works. Has there been a recent change in GP so that doing this with string translation no longer works? Judging by their forums many have success with that method.
The only method I'm aware of to change the logo per language would be to use the filter solution provided above.
Got help from the WPML team and they found that it is actually the site_logo string that is used, not theme_mods_generatepress_custom_logo.
Glad to hear!