Background of the issue:
I am trying to: The correct flag for Chinese Traditional should be hidden link. I tried to correct it with custom flag feature.
Symptoms:
WPML did not display uploaded flag. Instead, I got: Wrong flag and unable to fix it.
Questions:
Why is the custom flag not displaying correctly?
How can I fix the issue with the wrong language flag?
I understand the issue you're having. It is possible that the Lazyload feature of the Litespeed cache or another plugin is conflicting with the Custom Flag feature, which seems to be causing the issue.
Could you please run a plugin conflict test on your site to see if it helps resolve the issue?
1. Deactivate all other plugins on your site except for WPML and the String Translation plugin. Since the Lazyload feature is included with the Litespeed cache plugin, disabling that plugin will disable the Lazyload feature as well.
2. Upload the custom flag again. You can also check the requirements in this guide: [Custom Language Flags](https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/custom-language-flags/).
3. If the flag appears correctly, start reactivating the plugins one by one. After activating each plugin, check if the issue reappears. This way, you'll be able to trace which plugin is causing the issue.
Please let me know the update. I will be happy to help if you need further assistance in this matter.
I tried all of the methods you mentioned, but none of them work.
I also tried both SVG and PNG formats, but they are still not working. The PNG file is the attachment for your review and the SVG file is here: hidden link
Just wondering, is there any PHP extension requirement?
Hello David,
I hope you're doing well. Sorry for the delay in responding due to the weekend.
Thank you for the update. As the issue persists, could you please go to the "wp-content/uploads" folder and ensure the flag image files have the correct permissions to be accessed by the web server (e.g., 644 for files and 755 for directories)?
Regarding PHP extension requirements - SVG files may require the GD library or ImageMagick extension for proper handling in WordPress. Ensure these extensions are enabled in your PHP configuration. Check if the allow_url_fopen directive is enabled in your PHP configuration, which is required if you're using a URL to reference the flag image. You can run these checks by creating a PHP file (e.g., phpinfo.php) with the phpinfo(); function and access it via your browser.
Please let me know the update. I will be happy to help if you need further assistance in this matter.
Best regards,
Prosenjit
The topic ‘[Closed] Wrong language flag and custom flag does not work’ is closed to new replies.