Sauter la navigation

Ce sujet est résolu. Voici une description du problème et de la solution.

Problem:
The client is experiencing issues with their multilingual WordPress site using Elementor and WPML. When switching from French to English, the main navigation menu does not update, certain images in the menu do not display correctly, and single post content does not translate. Additionally, specific links cannot be translated.

Solution:
1. We recommend increasing the WP_Memory_limit to 256M to ensure the site has enough resources. Instructions on how to do this can be found in our documentation: Increasing your site's memory limit.

2. To translate links, use the Translation Editor as outlined in our documentation: How to translate URLs, shortcodes, and HTML attributes using the Advanced Translation Editor.

3. For the links translation issue, we provided a workaround:
- Add custom XML configuration in WPML > Settings > Custom XML Configuration using the provided XML code.
- Add the provided PHP code to the theme's functions.php file.
- Make a small edit to the Menu on the front-end to allow the URLs to be found in the Translation Editor.

If this solution does not apply to your case, or if it is outdated, we highly recommend checking related known issues at WPML 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: WPML support forum.

0% of people find this useful.

Il s'agit du forum d'assistance technique de WPML, le plug-in multilingue pour WordPress.

Il est accessible à tous, toutefois seuls les clients de WPML peuvent y publier leurs messages. L'équipe du WPML répond sur le forum 6 jours par semaine, 22 heures par jour.

Ce sujet contient 16 réponses, a 2 voix.

Dernière mise à jour par Ilyes Il y a 1 année et 3 mois.

Assisté par: Ilyes.

Auteur Articles
janvier 26, 2024 à 4:05 pm #15231108

romainC-9

I am facing multiple issues on my website, which utilizes WordPress, Elementor, and WPML for multilingual support. The primary problems occur when switching the site's language from French to English.

Menu and Image Display Issue:

When the language is changed to English, the main navigation menu does not switch to the English version.
Certain images, especially those in the menu, are either not displayed correctly or are completely hidden.
Single Post Translation Issue:

Additionally, when switching languages, the content in single posts does not translate to the selected language (English).

janvier 29, 2024 à 4:34 pm #15239875

Ilyes
Supporter

Les langues: Anglais (English ) Français (Français ) Arabe (العربية )

Fuseau horaire: Pacific/Easter (GMT-06:00)

Hello,

Thank you for contacting WPML support team,

As part of our support policy and to keep our forum easy to access for our other users, we recommend handeling one issue per ticket/chat.

That is why we should first focus on the Navigation menu issue.

Here is what see when I check your website : lien caché

it seems to be translated correctly and all images are working, please let me know if the issue persists and where to go to see it.

Furthermore, we would like to ask you to enable debug information for this matter, which will provide us with more insights about your website. You may refer to this link for instructions on how to do this: http://wpml.org/faq/provide-debug-information-faster-support/

Looking forward to your response.

janvier 31, 2024 à 1:02 pm #15249359

romainC-9

The problem is on the mega menu. You can see the mega menu on hover of "Products" item

mega menu.jpg
janvier 31, 2024 à 11:29 pm #15252367

Ilyes
Supporter

Les langues: Anglais (English ) Français (Français ) Arabe (العربية )

Fuseau horaire: Pacific/Easter (GMT-06:00)

Hello,

I see that the menu text isn't translated,

Have you translted your menus using WPML? here is a documentation on how to translate menus : https://wpml.org/documentation/getting-started-guide/translating-menus/

If it is translated and you still find an issue, I would like to ask for temporary access to your test site’s wp-admin.

If necessary, I may need to replicate your site locally. To do this, I will temporarily install a plugin called “Duplicator” on your site, which will enable me to create a copy of your site and its content. Once the problem has been resolved, I will delete the local site. Please let me know if you agree to this.

It is important to note that you should back up your site and database before proceeding, and you can use a plugin like Duplicator for this purpose. Here’s a link to the plugin: http://wordpress.org/plugins/duplicator/

If you do not see the form below, please do not enter your credentials as they will be publicly exposed:

lien caché

For your privacy and security, please ensure that you make your reply a private one.

Best regards,

janvier 31, 2024 à 11:30 pm #15252368

Ilyes
Supporter

Les langues: Anglais (English ) Français (Français ) Arabe (العربية )

Fuseau horaire: Pacific/Easter (GMT-06:00)

Your next reply will be in private.

février 1, 2024 à 9:25 pm #15257086

Ilyes
Supporter

Les langues: Anglais (English ) Français (Français ) Arabe (العربية )

Fuseau horaire: Pacific/Easter (GMT-06:00)

Hello,

Unfortunately, the access you shared isn't working, it says : ERROR: The username or password you entered is incorrect. Lost your password?

I have opened another private reply, please check the credentials and send it again,

Best,

février 2, 2024 à 10:21 pm #15261397

Ilyes
Supporter

Les langues: Anglais (English ) Français (Français ) Arabe (العربية )

Fuseau horaire: Pacific/Easter (GMT-06:00)

Hello again,

The widget are detected and translated but they are not displaying in the front end,

I noticed that you currently have 40M in WP_Memory_limit, I recommend increasing it to 256M : lien caché

I tried to do it for you, but i do not have access to your files.

Please follow this documentation to learn how to increase it :
https://wpml.org/faq/checklist-before-opening-a-ticket-in-wpml-support/#how-to-increase-your-sites-memory-limit

Let me know once done, I will then fix the issue for you.

Best,

février 5, 2024 à 9:54 am #15265136

romainC-9

Hello, it's done 🙂

février 5, 2024 à 7:46 pm #15268258

Ilyes
Supporter

Les langues: Anglais (English ) Français (Français ) Arabe (العربية )

Fuseau horaire: Pacific/Easter (GMT-06:00)

Thank you!

Now it seems to be working, increasing the WP memory limit and re-translating the template fixed the issue : lien caché

Could you please check?

Best,

février 5, 2024 à 8:39 pm #15268356

romainC-9

It's okay for translating of texts but I always have this problem :

- I can't translate the links. This means that when I'm on the English version and I click on an item in the mega product menu, I'm redirected to the French pages.

février 6, 2024 à 11:28 pm #15274160

Ilyes
Supporter

Les langues: Anglais (English ) Français (Français ) Arabe (العربية )

Fuseau horaire: Pacific/Easter (GMT-06:00)

Hello,

You should be able to translate the links from the Translation editor like this : https://wpml.org/faq/how-to-translate-urls-shortcodes-and-html-attributes-using-the-advanced-translation-editor/

Here is a video of one example I did : lien caché

Best,

février 12, 2024 à 6:45 pm #15294521

romainC-9

It's okay but some link can't be translated.

For example, here (lien caché), I can't translate this link : "lien caché"

Capture d’écran 2024-02-12 à 19.43.42.png
février 12, 2024 à 6:46 pm #15294537

romainC-9

second screenshoot

Capture d’écran 2024-02-12 à 19.30.27.png
février 13, 2024 à 9:16 pm #15299663

Ilyes
Supporter

Les langues: Anglais (English ) Français (Français ) Arabe (العربية )

Fuseau horaire: Pacific/Easter (GMT-06:00)

Hello,

This URL is coming from the Mega menu widget made by unlimited-elements, I could see that they are compatible with WPML and that there shouldn't be any further configuration required for it to work : lien caché

However, we last tested this plugin on: November 28, 2023 , a lot could have changed in term of the updates of this plugin since then and I think it could be a compatibility issue.

I have tried to register this widget like this but it didn't work : https://wpml.org/documentation/related-projects/wpml-compatibility-test-tools-plugin/registering-custom-elementor-widgets-for-translation/

To better find the cause of this issue, could you please open the link below, it will redirect you to a fresh WP installation with WPML, install unlimited-elements plugin on it with elementor and recreate the issue there? i could then contact our compatibility team and potentially contact the makers of this plugin to adjust the code :

lien caché

Please let me know once done.

Best,

février 14, 2024 à 9:25 am #15300691

romainC-9

Hello,

Ok I see.

Unlimited Elements Pro is activated on your WP installation !