Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 - -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 3 replies, has 2 voices.

Last updated by Noman 11 months, 1 week ago.

Assisted by: Noman.

Author Posts
November 2, 2024 at 9:05 pm #16357158

sanderK-22

<b>Background of the issue: </b>
I am trying to see the language switcher in the header. Before, there was a language switcher in the header, and it worked well, but suddenly it disappeared. Link to a page where the issue can be seen: hidden link

<b>Symptoms: </b>
The header language switcher suddenly disappeared. Instead of the language switcher, there is just an empty spot.

<b>Questions: </b>
Why did the language switcher in the header disappear?
How can I restore the language switcher in the header?

November 3, 2024 at 9:32 am #16357593

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting WPML Support. After examining the source code of that section, I found that the language switcher is currently hidden on desktop but visible on mobile.

To resolve this, please try one of the following:

1. Remove the desktop-link-hide class from the language switcher, as shown in the attached screenshot.

2. Alternatively, add the following CSS to the theme’s custom CSS section:

.menu-item.wpml-ls-item a.desktop-link-hide {
    display: block !important;
}

Please let me know the results,
Thank you

hide on desktop.jpg
Tablet view - switcher.jpg
November 3, 2024 at 10:03 pm #16358485

sanderK-22

Hello

I added the CSS code and after that switcher is back.

May I ask how to remove the desktop-link-hide class from the language switcher?

Best Regards

November 4, 2024 at 7:51 am #16358986

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Glad to hear the switcher is back by overriding the CSS.

WPML doesn’t add the desktop-link-hide class, so it’s likely coming from your theme or another plugin. You might want to check your header settings where the language switcher was added to see if there’s an option controlling its visibility on desktop.

If you’re unable to locate this setting, it may be helpful to contact the theme author for guidance. Alternatively, if you’d like me to investigate further, I can check the issue in a minimal environment by deactivating all plugins except WPML to pinpoint the source.

Let me know how you’d like to proceed!

Thank you for your cooperation

The topic ‘[Closed] The header language switcher suddenly disappeared’ is closed to new replies.