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.
|October 5, 2018 at 2:05 pm #2791053|
I am trying to sync menu items that have empty urls, but WPML don't sync them. Those empty url in the menu are used for the top items in my menu for the dropdown submenus.
This problem happens on all my websites. It seems that WPML can't manage/translate empty strings.
How to reproduce :
Result: WPML doesn't update the url field, and leave it to "#".
I tried to translate those menus with the string translation, but they don't show up since the original url field is empty.
A workaround is to leave the "#" in the url field instead of leaving the field empty, that way WPML sync the menu correctly, but it doesn't have the same effect in the front end (the mouse cursor acts like a url, and if we click it, it moves the page to the top).
A second workaround I just found is to create a new custom menu item to recreate the menu. That way, WPML copy the empty field, but that's a pain for big menus.
In the screenshot, you see the new url in blue "0", but it stays in blue even after trying to sync it.
|October 8, 2018 at 3:35 pm #2796745|
Languages: English (English ) Hebrew (עברית )
Timezone: Asia/Jerusalem (GMT+03:00)
I've checked this issue on my local server on a clean WordPress installation, and I cannot replicate this issue. An empty menu item is being synced to the other language menu. On my test site, English is the default language, and French is the second language. Please see the attached screenshots. So it looks like it is happening on your site installation.
I guess that you are expecting that when hovering with the mouse on the top level menu item the sub-menu items will show.
If you need a better solution for this, we will need to debug the issue on your site. So, in this case, please try the following.
If possible get your site into a minimum environment.
The topic ‘[Closed] Empty menu url doesn't sync’ is closed to new replies.