[Resolved] WPML not change the languge of the Global Divi Library
This thread is resolved. Here is a description of the problem and solution.
Problem: The client was experiencing issues with WPML not changing the language of the Global Divi Library, specifically with headers and menus not loading the correct translated versions on the front end. Additionally, there were problems with URL translations defaulting to "/" instead of including the language prefix after translation. Solution: 1. For the header and menu ID translation issue, we advised the client to manually edit the translated header (AR header) and replace the menu English ID with the Arabic ID. This process involves going to Divi > Theme Builder, selecting the Global Header, and updating the IDs accordingly. 2. For the URL translation issue, we recommended using absolute URLs instead of relative ones. For example, translating '/contact' to '/ar/contact' using the Advanced Translation Editor. Additionally, for dynamic page linking, we suggested using the Dynamic field option and selecting "Page Link" with the homepage in the dropdown.
Please note that this solution might be outdated or not applicable to your specific 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. If the issue persists, please open a new support ticket at WPML support forum for further assistance.
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.
After a lot of time spent, we see that the issue is specifically happening on your website on a live server. We created a zip file so once more we can check in the local machine. We will get back to you.
Thank you again for your help with the header issue.
I’ve just noticed that I have the same problem with another Divi global layout (not the header). The Arabic version is created, but the correct layout is not being loaded on the front end.
Could you please guide me step by step on how to check and update the layout/menu IDs myself, similar to what you did for the header (EN ID → AR ID), so I can fix this layout and any future ones on my own?
If it helps, I can share which global layout is affected and its IDs.
When have a new Link module inside the mobile menu, the URL defaults to "/" instead of "/ar/" — the language prefix is missing after translation of canvas or layout.
Please see the attached screenshot. Kindly advise.