WPML

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

This issue is fixed. Updating to the latest version solves it on your site, so you only need this workaround if you can’t update yet.

As a workaround you can simply translate your menu or:

  1. Make a full backup of your site.
  2. Edit the /sitepress-multilingual-cms/inc/wp-nav-menus/TranslateMenu.php file.
  3. Look for line 54.
  4. Change:
    if ( $key !== 'menu_order' ) {
  5. With:
    if ( !in_array($key, ['menu_order', 'post_type', 'ID']) ) {

All known issues

Still Seeing This Issue?

If updating doesn’t fix it, ask a support question and we’ll look into it with you.