[Resolved] Theme conflicting with WPML Language switcher
This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing issues with the Language switcher block in the header not displaying the arrow and the dropdown menu items being always visible, it might be due to a theme conflict or a JavaScript problem.
Solution: First, ensure you are using the latest version of the WPML plugin. If the problem persists, try the following steps: 1. Test the language switcher on a new template to see if it functions correctly. 2. If the issue remains, it could be related to a conflict with your theme's JavaScript. Contact the theme's support for assistance in identifying the conflicting script. 3. As a workaround, consider adding a custom language switcher as explained in our documentation here, or try using the menu language switcher, which you can find here. 4. Alternatively, you can test the WPML 4.6.10 beta1 to see if the issue is resolved.
Im using the Language switcher block in the header (FSE) and the setting are: dropdown format, open on click, show arrow. However, the arrow does not appear and the drop-down menu items are always visible. You can see it here (top right): hidden link
"Unfortunately, I can't help with this, maybe WPML doesn't work with Frontpage templates and it's only working with Homepage templates, maybe they missed to add support for it, because default 2024 uses Homepage and they tested it on it. We can't change this logic because it's not in our control. We plan to make switcher for different workflows in future updates, but currently you may need to use 2024 or classic"
Hmmm... In this case, then the block settings not work properly, because with your (default) setting it does work. However, if I change something, like:
- show flag
- show on click
- language code as name
then block will no longer work correctly. And I need these three settings together (no flag, show on click, code as name).
So as far as I can see the block only works by default, if you make any adjustments to it, it stops working...
Unfortunately, not only does it not work when the "Open on click" option is disabled. Basically, any setting will break the block (like disabling the flag or showing the language name as code).
And for me, unfortunately, hiding the flag and showing the language code is critical (click functionality would be just fine).
When do you expect the fix to be ready? It would be important for me to know so that I can communicate to the client...