- Status
- Resolved
- Reported for
- WPML Multilingual CMS 4.5.5
- Resolved in
- 4.5.9
Overview of the issue
Since WPML 4.5, even if you haven’t translated your site’s menu, WPML renders it on secondary languages. This new feature works great, however, if your menu contains sub-items, the drop-down will look broken.
Workaround
As a workaround you can simply translate your menu or:
- Make a full backup of your site.
- Edit the /sitepress-multilingual-cms/inc/wp-nav-menus/TranslateMenu.php file.
- Look for line 54.
- Change:
if ( $key !== 'menu_order' ) { - With:
if ( !in_array($key, ['menu_order', 'post_type', 'ID']) ) {