[Resolved] Changing logo ICL_LANGUAGE_CODE not working
This thread is resolved. Here is a description of the problem and solution.
Problem:
The site logo was not translatable.
Solution:
1- Go to WPML-> Theme and plugins localization, select your theme, and scan
2- Go to WPML-> String Translation
3- Scroll down and click on the "Translate texts in admin screens »" link
4- Search for Logo URL and ID
5- Select the strings
6- Click on the "Add to String Translation" button
7- Then click on "the « Return to String Translation" link
8- Translate the strings, clear the cache, and check the front end
My theme is WPML supported, and I am trying to use the ICL_LANGUAGE_CODE hook to display a different logo for the English website. The main website is Dutch.
I am following: hidden link
Following the manual and making the adjustments in my child theme, does not change the logo at all. Does someone know what the problem is, and how to accomplish this?
Thank you very much for your time and efforts. I have tried your piece of code, but unfortunately, the logo still does not change.
Regarding the last line of your message, does that mean you cannot help me further? If that is the case, I understand, and will need to come up with a different solution.
Thank you for providing the link and wanting to find the issue. I have uploaded the theme and created a child theme where I have edited the specific file (wp-content/themes/myhome/includes/menu/class-myhome-menu.php). I have used an example logo, with the piece of code from the link in my first post, aswell as your code. As can be seen, it does not work for some reason.
Thanks for replicating the issue. Would you please check the following steps?
1- Go to WPML-> Theme and plugins localization, select your theme, and scan
2- Go to WPML-> String Translation
3- Scroll down and click on the "Translate texts in admin screens »" link
4- Search for Logo URL and ID
5- Select the strings
6- Click on the "Add to String Translation" button
7- Then click on "the « Return to String Translation" link
8- Translate the strings, clear the cache, and check the front end