Skip Navigation

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 8 replies, has 2 voices.

Last updated by Andreas 1 year, 9 months ago.

Assisted by: Andreas.

Author Posts
March 27, 2023 at 1:43 pm #13339381

larryL-9

How would I hide one language from the menu switcher? I still want the pages to be live but don't want the language in the menu

March 27, 2023 at 1:48 pm #13339419

Andreas

Hello there

Thank you for contacting us. I am happy to help you.

In order to expedite handling your support requests, can you please share WPML support debug information from your site.

- To give debug information, login to your site and go to WPML → Support. From there click on the “debug information” link at the bottom of the page.
- Once on the “debug information” page, select the entire content of the text box and copy it.
- Now go back to our support forum, find debug information box and paste it.

More information on the link: https://wpml.org/faq/provide-debug-information-faster-support/

Now about your question. I read your question but I am not sure that I understand your issue.

Can you please explain me a little bit and maybe share with me a screenshot showing what needs to be done ?

Regards,
Andreas

March 27, 2023 at 2:04 pm #13339563

larryL-9

Don't feel like this is needed for a simpl question but here goes...

March 27, 2023 at 2:16 pm #13339683

Andreas

Thank you very much.

May I ask you to read this similar topic and check if this can help you.

https://wpml.org/forums/topic/i-want-to-hide-language-from-front-end-only/

Regards,
Andreas

March 27, 2023 at 2:53 pm #13339985

larryL-9

So will adding :

#menu-item-wpml-ls-2-en-ru{
display: none !important;
}

Stop Russia from showing?

March 28, 2023 at 2:07 pm #13350133

Andreas

Thank you

I have looked again your page source code.

May I ask you to tell me how you added the language swither to the menu ? You can share with me a screenshot if you wish. It seems from the code that something is not default, but we need to ensure it.

Regards,
Andreas

March 28, 2023 at 3:29 pm #13350805

larryL-9

Standard way as far as I know.

Screenshot 2023-03-28 at 16.28.54.png
March 29, 2023 at 10:23 am #13356773

Andreas

Thank you

Would you be willing to provide me with WordPress credentials so I could investigate the issue directly?

https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

I marked your next reply as private so that you can safely add credentials.

Regards,
Andreas

March 30, 2023 at 12:10 pm #13367177

Andreas

Thank you very much for the access.

I have looked better and I see that you are using a custom Theme.

It looks like the theme is stripping classes from the menu elements. This is the reason the above CSS is not working.

Please ask your developers to allow wpml classes in the menu in order to be able to disable the language you wish.

I hope this helps. Please let us know how it goes or if you need any further assistance. I'll gladly help you. 🙂

Regards,
Andreas