Skip to content Skip to sidebar

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

Problem:
If you're experiencing issues with adding a language widget to the menu bar in the Twenty Twenty-Four theme because the menu is disabled under Appearance, we can help.
Solution:
1) The Twenty Twenty-Four theme does not support editing menus under Appearance -> Menus. Instead, you can edit the navigation template using the WordPress editor and add a language switcher block. We recommend following this guide: https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/#add-language-switcher-template.
2) Additionally, it appears that the WP memory limit needs to be increased for optimal performance with WPML. Although this is not directly related to your issue, increasing the memory limit can improve overall site performance. You can increase the memory limit by adding the following code to your wp-config.php file right before the /* That's all, stop editing! Happy publishing. */ line:

/* Memory Limit */<br />define('WP_MEMORY_LIMIT', '256M');<br />define('WP_MAX_MEMORY_LIMIT', '256M');

If this solution does not apply to your case, or if it seems outdated, 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. If you still need assistance, please open a new support ticket 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.

This topic contains 1 reply, has 0 voices.

Last updated by Osama Mersal 1 year, 1 month ago.

Assisted by: Osama Mersal.

Author Posts
February 21, 2025 at 8:11 pm #16735151

Sam

Background of the issue:
I am trying to add a language widget to the menu bar, but the menu is disabled under Appearance for the Twenty Twenty-Four theme. You can see the issue on this page: hidden link
Here is a screenshot hidden link
Menu language switcher is greyed out.

Symptoms:
The menu is disabled under Appearance for the Twenty Twenty-Four theme, preventing me from adding the language widget.

Questions:
Why is the menu disabled under Appearance for the Twenty Twenty-Four theme?
How can I enable the menu to add the language widget?

February 23, 2025 at 12:31 pm #16737850

Osama Mersal

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

First of all, sorry for the late reply; it was due to a higher workload.

1) In the "Twenty Twenty-Four" theme, there are no Appearance-> Menus. You can edit the navigation template using the WordPress editor and add a language switcher block. Kindly check this guide.

2) It's not related to the issue, but according to your Debug.info, the WP memory limit needs to be increased. PHP memory is fine, but WordPress uses 40Mb as default. The minimum requirements for WPML are 128 MB. (Kindly check this page https://wpml.org/home/minimum-requirements/)

You can increase it by adding the following code in your wp-config.php file right before the /* That's all, stop editing! Happy publishing. */ line:

/* Memory Limit */
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M');

Best regards,
Osama