Skip Navigation

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

Problem:
You are experiencing issues with custom flags stretching on your site despite adding code to prevent resizing and using the PNG format.
Solution:
The issue might be due to a CSS conflict. We recommend checking your site's CSS settings and making necessary adjustments. Additionally, ensure that the language switcher is enabled on your site so we can further investigate the issue. For guidance on setting up custom language flags, please visit Custom Language Flags.

If this solution does not resolve your issue or seems outdated, please check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. If the problem persists, we highly recommend opening a new support ticket for further assistance.

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 1 reply, has 0 voices.

Last updated by Hgghjjhg4566 2 weeks, 6 days ago.

Assisted by: Noman.

Author Posts
April 3, 2025 at 10:21 am #16891196

Hgghjjhg4566

Background of the issue:
I am trying to use custom flags on my site hidden link. I have already added code to the wp-admin file to avoid resizing, and I have selected the PNG format.

Symptoms:
The custom flags are stretched.

Questions:
Why are the custom flags still stretching despite adding code to avoid resizing?
Why is the PNG format not preventing the stretching of images?

April 3, 2025 at 11:25 am #16891657

Noman
WPML Supporter since 06/2016

Languages: English (English )

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

Hi,

Thank you for contacting WPML Support. This issue is likely caused by a CSS conflict and can usually be fixed with a small CSS adjustment. I tried to visit your site, but I couldn’t find the language switcher. Could you please enable it so I can examine the source of the problem and provide a solution accordingly?

In the meantime, here’s a guide on custom language flags: https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/custom-language-flags/

Let me know once it's enabled.

Thank you

April 3, 2025 at 2:14 pm #16892868

Hgghjjhg4566

It was ok - cleared cache, that solved it 😉 Thanks for your reply.