Skip Navigation

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

Problem:
The language switcher flags were not showing on mobile view.

Solution:
The LiteSpeed Cache plugin was causing this issue and the problem has been solved by following the steps from this thread:
https://wpml.org/forums/topic/custom-language-switchers-flags-not-showing/#post-14457603

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

Last updated by Noman 1 year, 3 months ago.

Assisted by: Noman.

Author Posts
September 30, 2023 at 9:23 am #14490923

aleksandrsC

Good day,

Found problem, that language switch placed inside of Mobile menu doesn't display language flags: they are invisible if WxH is auto, and I can see only borders if WxH is provided.

Untitled2.png
Untitled1.png
Untitled.png
October 2, 2023 at 7:54 am #14495071

Andrés
Supporter

Languages: English (English ) Spanish (Español ) French (Français )

Timezone: Europe/Paris (GMT+01:00)

Hello there,

Welcome to WPML support forum.

While one of my teammates takes care of your case I will provide you with the first debugging steps.

It could be either the theme, plugin or a combination of both. Therefore can you do the following: check if this issue appears in your test site when:

- Only WPML plugins are activated, as it will tell us if there is an interaction issue with other plugin
- Theme is set to a WordPress default like Twenty Nineteen as it will tell us if there is an interaction issue with your theme

If you don't see the issue happening in the above scenario, can you try to determine whether this is a theme or a plugin issue?

If you find a culprit, let me know so that we can test this in a minimal environment and escalate to compatibility team if required.

If it was not the case and while another supporter takes personal charge of your situation, I've enabled debug information for this support ticket. Please see this link for how to get this information from your site and give it to us:
http://wpml.org/faq/provide-debug-information-faster-support/

Let us know if it helps.
Andrés

October 2, 2023 at 10:42 am #14497199

aleksandrsC

Good day,

Thanks for your advice.
I found there is interaction issue with LiteSpeed Cache plugin Version 5.6. When this plugin is deactivated - flags in menu appear.

Best regards,
Alex

October 3, 2023 at 11:15 am #14503861

Noman
Supporter

Languages: English (English )

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

Hi,

Thank you for contacting WPML Support. I'll be following up on this ticket. Thanks for isolating the cause of this issue. We have another client who had a similar issue and was able to fix it by following the below thread. Could you please give it a try and let me know how it goes:
https://wpml.org/forums/topic/custom-language-switchers-flags-not-showing/#post-14457603

If the issue still persists, please add the debug report in the Debug Information box. I have also enabled debug info box for your next reply: https://wpml.org/faq/provide-debug-information-faster-support/

Thank you

October 3, 2023 at 9:14 pm #14508691

aleksandrsC

Thanks a lot! Now everything works correctly. Followed steps from provided thread.

All the best wishes,
Alex.