Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing issues with a custom language switcher in the header menu of their site. The switcher is required to open on click as per the client's requirements, but it does not close smoothly and lags.

Solution:
We suggested modifying the CSS to improve the functionality of the language switcher. Here are the steps and code provided:

.wpml-ls-legacy-dropdown-click .wpml-ls-sub-menu {<br />    transition: none !important;<br />}<br /><br />.wpml-ls-legacy-dropdown-click.wpml-ls-item-toggle .wpml-ls-sub-menu {<br />    transition: none !important;<br />}

If these changes do not resolve the issue, we recommend removing any previous conflicting CSS and ensuring no custom scripts are interfering. Additionally, we suggested that the client might consider consulting with a professional from WPML contractors for further customization, as this falls outside our standard support scope.

If this solution does not apply to your case, or if it seems outdated, please check the related known issues, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. Should issues persist, we highly recommend opening a new support ticket here.

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.

This topic contains 0 replies, has 0 voices.

Last updated by Bruno Kos 1 week, 2 days ago.

Assisted by: Bruno Kos.

Author Posts
April 8, 2025 at 5:50 am #16906753

tarunR-2

Background of the issue:
I am trying to make the language switcher in the header menu of my site, hidden link, show and close immediately after clicking on it.

Symptoms:
The language switcher dropdown is not closing smoothly and is lagging.

Questions:

April 8, 2025 at 7:18 am #16907062

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Can you tell me if you managed to get it working, has the CSS worked eventually?

Because on hidden link I see that it works instantly, on click, both opening and closing.

If still having issues with it, can you set the language switcher of the same style here so I could check?
hidden link