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.

This topic contains 7 replies, has 2 voices.

Last updated by Waqar Ali 1 year, 4 months ago.

Assisted by: Waqar Ali.

Author Posts
September 15, 2023 at 7:48 pm #14405345

tomasJ-15

Hello,
I have the same problem with the flag icons like in:
https://wpml.org/forums/topic/svg-flags-footer-now-showing/#post-14330323

Could you please also help me to resolve the problem? Im also using the LSCache plugin. Please find printscreen attached.

Thank You in advance

Screenshot 2023-09-15 at 22.38.50.png
September 18, 2023 at 12:51 pm #14412071

Waqar Ali

Hi,

Thank you for contacting us and I'd be happy to assist.

To troubleshoot this, I'll need to see how the WPML and the LiteSpeed Cache plugins are configured in the admin area.

Can you please share the temporary admin login details, in reply to this message?

Note: Your next reply will be private and it is recommended to make a complete backup copy before sharing the access details.

regards,
Waqar

September 18, 2023 at 2:11 pm #14413035

Waqar Ali

The access details worked, thank you.

However, it doesn't allow me to access the website's admin area.

Can you please make sure that this test user has the 'administrator' user role?

September 18, 2023 at 3:18 pm #14413683

tomasJ-15

Oh, sorry, now role assigned correctly.

Thank you

September 19, 2023 at 2:53 pm #14420679

Waqar Ali

I can access the admin area now, thank you.

I'm going to perform some troubleshooting and research and will share the findings, as soon as it completes.
(no changes will be made to your website)

Thank you for your patience.

September 22, 2023 at 6:32 am #14443537

Waqar Ali

Thank you for waiting as we had a busier than normal forum queue.

Just wanted to let you know that I'm still working on this and will share the detailed findings, by the end of the day today.

September 25, 2023 at 7:38 am #14455161

tomasJ-15

Hello,

didn't received any info from your side on Friday, any news regarding flags? 🙂

Regards
Tomas J.

September 25, 2023 at 11:41 am #14457603

Waqar Ali

Hi Tomas,

Thank you for waiting, while I completed the tests around the missing language switcher flag icons.

During troubleshooting, I noticed that the 'LiteSpeed Cache' plugin's lazy loading feature for images is what is causing those icons to not load properly.

If you go to WP Admin -> LiteSpeed Cache -> Page Optimization -> Media Excludes, you'll see options for:

- Lazy Load Image Class Name Excludes
- Lazy Load Image Parent Class Name Excludes

I've included the class name 'wpml-ls-flag' into the 'Lazy Load Image Class Name Excludes' option and the class name 'switcher-language-wrapper' into the 'Lazy Load Image Parent Class Name Excludes' option and those flag icons are loading correctly now.
( screenshot attached )

If you still see those flag icons missing on any particular device or browser, please clear all involved caches and then test again.

regards,
Waqar

lite-speed-cache-settings.png
September 25, 2023 at 11:50 am #14457735

tomasJ-15

Thank you very much, yes flags now loading correctly 🙂 Have a nice day!