Skip to content Skip to sidebar

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

Problem:
The client is unable to display language switcher flags in the top menu and cannot remove an option by clicking the 'X' button.
Solution:
1. **Increase WordPress Memory Limit:**
- Access the `wp-config.php` file and add the following line above the `/* That's all, stop editing! Happy publishing. */` line:

define('WP_MEMORY_LIMIT', '256M');

2. **Verify Language Switcher Settings for Flags:**
- Navigate to **WPML → Languages**.
- In the **Menu language switcher** section, click the **Customize** button for the relevant menu switcher.
- Ensure the **Flag** option is checked and click **Save**.
3. **Check if the 'X' button now works:**
- After updating the memory limit and re-saving the language switcher settings, attempt to click the 'X' button again.

If these steps do not resolve the issue, we recommend checking for JavaScript errors in the browser console, inspecting the menu language switcher configuration in the database, and assessing for conflicts with other plugins. If the problem persists, please contact our support team for further assistance. We also 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.

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 2 replies, has 1 voice.

Last updated by Carlos Rojas 4 months, 1 week ago.

Assisted by: Carlos Rojas.

Author Posts
December 5, 2025 at 11:28 am #17637942

alessandraP

I can t display language switcher flags in menu on top. Moreover i can t erase the first line option because when i click on X it doesn t work. Please see screen attached. I need urgently your support plkease
Alessandra

December 5, 2025 at 11:30 am #17637965

alessandraP

I m trying to speak with someone but no chat is available. I need help please

December 5, 2025 at 12:42 pm #17638480

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hi Alessandra,
My name is Carlos, and I will continue working on this ticket

I kindly ask you to follow these steps and let me know the results:
- Create a full site backup or create a staging site with a copy of the live site (you can use the WP Staging plugin for free)
- Update any outdated plugins or themes
- Flush any cache memory that might exist
- Go to WPML -> Support -> Troubleshooting link -> Click on the following buttons:
-- Clear the Cache in WPML
-- Remove ghost entries from the translation tables
-- Fix element_type collation
-- Fix WPML table collation
-- Set language information
-- Cleanup and optimize string tables
-- Clear invalid strings
- Then deactivate all plugins, including the WPML ones and activate a default WordPress theme, like: Twenty Twenty
- Activate the WPML plugins and the theme
- Try to delete the language switcher
- Go to Appearance -> Menu -> Make sure the menu on the top bar is translated as described in this guide: https://wpml.org/documentation/getting-started-guide/translating-menus/
- Go to WPML -> Languages -> Add the language switcher to the top menu
- Activate the rest of the plugins and check if the issue has disappeard

Can you tell me the results of the steps described above?

Regards,
Carlos