[Resolved] How to translate the DonDivi DiviMenus Flex module (links)
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is trying to translate the header template using Divi Builder with WPML, but the URLs in the DonDivi DiviMenus Flex modules are not being translated and still point to the original language pages.
Solution: 1. Navigate to WPML-> Settings-> Custom XML Configuration tab. 2. Insert the following custom XML configuration:
3. Click "Save". 4. Edit the page/template in the default language and add the page's full URL. 5. Update the page/template. 6. Update the translation and search for the URL to ensure it's translated.
I translated the header template, but this only offers the visible texts (not the URLs/links) for translation.
I also synchronized the menus (or more correctly: your support staff did because we failed), but the links on the translated site in den DonDivi DiviMenus Flex modules always point to the pages in the original language.
Do I need some custom XML configuration for this?
Is there a built-in way to translate the navigation with DonDivi DiviMenus?
Is there any documentation that you are following?
Finally I've set the sandbox up with an example of the DiviMenus.
If you browse the homepage, you'll see 3 sample pages that can be selected from the main menu:
hidden link
(first image)
I added a translation to German, so if you switch to german the title on the page and the menu entries read "Seite" instead of "Page":
hidden link
(second image)
Now, if you click on any of the links in the menu (e. g. "Seite 2"), you are back on "Page 2" (english version).
To fix this, the URL in the menu would need to be translated from e. g. "/page-2/" to "/de/seite-2/", but it is not available and search does not produce it for me either:
3- Click "Save"
4- Edit the page/template in the default language
5- Add the page's full URL and update the page/template
6- Update the translation and search for the URL. (Kindly check the attached screenshot)
At least, if I use a full URL (including protocol and host).
It does not seem to work if the URL is only "/" (without the quotation marks) for site root.
Is there a filter in WPML preventing this 1 character string from showing up in the translation and if so can I have it ignore certain strings (so that I can translate "/" to "/en/" for example?
In general, I prefer to use site-relative links, since those are less headache when moving e.g. from staging to production servers.