Skip Navigation

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.

If this solution doesn't look relevant, please open a new support ticket.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 22 replies, has 2 voices.

Last updated by Kor 10 months, 1 week ago.

Assisted by: Kor.

Author Posts
January 12, 2024 at 3:55 pm

daniel-viktorV

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

January 12, 2024 at 4:54 pm
January 12, 2024 at 4:54 pm #15180296

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience.

Here is the ticket. Please let me know how it goes.

January 15, 2024 at 8:41 am #15183575

daniel-viktorV

Hi,

It was the answer from the Greenshift support:

"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"

What could be done to make the sitcher work?

January 15, 2024 at 9:01 am #15183727

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

Could you please try replicating the issue on our sandbox site here? hidden link

You can install the theme and plugins that you need to replicate it. I've already activated WPML plugin the site so that you can work on it.

Once you're able to replicate the issue here, I will escalate this further to our 2nd Tier Support for further investigation.

January 15, 2024 at 9:13 am #15183760

daniel-viktorV

Installed the same plugin and theme, and the same issue persists here as well: hidden link

January 15, 2024 at 9:27 am #15183806

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

I could make it work here hidden link and could you please check? Maybe you can compare the settings with your production site?

January 15, 2024 at 9:56 am #15183998

daniel-viktorV

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...

January 15, 2024 at 10:11 am #15184116

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. Could you try to replicate the issue? It's still working fine when I made some changes to the language switcher hidden link

January 15, 2024 at 10:27 am #15184205

daniel-viktorV

Of course! I made a screenrecord of it: hidden link

January 15, 2024 at 4:05 pm #15186182

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

I can replicate the issue and I will escalate this to our 2nd Tier Support for further investigation.

January 15, 2024 at 4:18 pm #15186214

daniel-viktorV

Thank you! When do you expect this problem to be solved?

January 15, 2024 at 4:25 pm #15186219

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

Sorry for the inconvenience. I will try to get a workaround for you but I cannot promise. We'll do our best.

January 17, 2024 at 3:54 pm #15195861

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience.

I have a feedback and our 2nd Tier Support mentioned that there is no workaround for this and they have escalated this to our developers.

Unfortunately, you'll have to disable the "Open on click" option if you wish to use the Language Switcher.

January 18, 2024 at 3:33 pm #15200977

daniel-viktorV

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...