[Resolved] the language custom flag option not work
This thread is resolved. Here is a description of the problem and solution.
Problem: You are unable to click the save button after uploading a custom flag icon in WPML, and the flag images are not visible on the frontend. Solution: To resolve the issue with the save button being unclickable: 1. Enable the Advanced Translation Editor from WPML >> Settings. 2. Disable the 'Translate Everything Automatically' option from WPML >> Translation Management page. 3. Go to WPML >> Languages > Edit Languages, map the Arabic language with Arabic and English language with English, and press the Save button. 4. Disable the Advanced Translation Editor and enable the Classic Translation Editor from WPML >> Settings.
To fix the frontend flag visibility issue: 1. Navigate to LiteSpeed Cache >> Page Optimization. 2. Open the Media Excludes tab. 3. Add the "wpml-ls-flag" class name in the "Lazy Load Image Class Name Excludes" field.
If these steps do not resolve your issues or if the solution seems outdated or irrelevant to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Additionally, please feel free to open a new support ticket for further assistance at WPML support forum.
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.
2. Make sure you are using the latest version of theme and plugins on your site.
3. Please delete all sorts of caches on your site/server cache if any / plugin cache / CDN cache (if any), clear browser cache, and then see if it resolves the issue afterward.
4. Please try another browser and see if it helps.
If the issue persists, please check the browser console if there are any errors when you try to upload the custom flag.
Thanks for trying the above steps and sharing debug info. Could you please try to follow the below steps and see if this resolves the issue:
1. The current WP Memory Limit on your site is 40MB. The WP memory limit needs to be increased, it's different from PHP memory. PHP memory is fine but WordPress uses 40MB as default in your site. The minimum requirements for WPML are 128MB: https://wpml.org/home/minimum-requirements/
Please add this line to your wp-config.php file to increase WP memory, wp-config.php file is located in the root of your WP install:
You can add it anywhere in your file. I recommend placing it right before the following line:
/* That's all, stop editing! Happy blogging. */
2. Please try another browser and see if it helps.
3. If the issue persists, please provide temporary access (WP-Admin and FTP Login info) to your site (preferably staging site), so that I can look into your setup and debug the issue.
Your next answer will be private, meaning only you and I can access it.
=== Please backup your database and website ===
✙ I would need your permission to deactivate and reactivate Plugins and the Theme and to change configurations on the site. This is also a reason the backup is essential.
✙ Please provide me with a flag image URL which you want to use on your site.
Thanks for providing the login details. This type of issue usually happens when the language mapping fields are not set from WPML >> Languages > Edit languages page. So, I followed the below steps in order to fix this issue:
1. Enabled the Advanced Translation Editor from WPML >> Settings as you can see in the attached screenshot.
2. Disabled the Translate Everything Automatically option from WPML >> Translation Management page.
3. Went to WPML >> Languages > Edit language page, map the Arabic language with Arabic and English language with English and press the Save button.
4. Disabled the Advanced Translation Editor and Enable Classic Translation Editor from WPML >> Settings page.
Then I’m able to upload the custom flag without any issues as you can see in the attached screenshot. Could you please check and confirm?
you are now make an issuse in the website yes iam was enable to upload the icon but dosent worked iam try to defiranet logo img and dosnet show me in menu the eng flag is missed please fix it
Glad to hear you are able to upload the custom flag now.
For fixing the frontend flag visibility issue, I followed the below steps:
1. Went to the LiteSpeed Cache >> Page Optimization
2. Open the Media Excludes tab.
3. Added the “wpml-ls-flag” class name in the “Lazy Load Image Class Name Excludes” field.
Now, flag images are showing correctly at the front end as you can see in the attached screenshot.
Please let me know if this resolves the issue or if you need further assistance with this issue.