Home›Support›English Support›[Resolved] Not all elements are translating and menu functionality not working in all languages.
[Resolved] Not all elements are translating and menu functionality not working in all languages.
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing issues with the translation and functionality of menu links in a multilingual website using the Avada Theme and WPML. Specifically, the menu links do not translate or function correctly in mobile and tablet views when Simplified Chinese is selected, and desktop menu links do not scroll to the correct sections. Solution: For the issue with menu links not translating or functioning correctly in Simplified Chinese, we recommend the following steps: 1. Check if the section ID on the page has been translated to "信任来源" or was manually added. If so, you can: - Change the menu anchor in the Chinese (Simplified) menu to
#信任来源
by going to Appearance → Menus, selecting the needed menu, switching to Chinese (Simplified), and changing the menu anchor from
#trust-in-the-source
to
#信任来源
. - Alternatively, check
#trust-in-the-source
in WPML → String Translation and translate it there. 2. If the section ID was translated, you can: - Go to WPML → String Translation, search for "trust-in-the-source" under a domain related to your current theme, and ensure the value for Chinese (Simplified) matches the original value:
trust-in-the-source
. - If you can’t find "trust-in-the-source" in WPML → String Translation, check it directly in the page translation itself as the ID might have been changed there.
If these steps do not resolve the issue or if the solution seems outdated or irrelevant to your 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 problem persists, please open a new support ticket.
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.
This maybe a duplicate ticket. I submitted a ticket earlier today, but it is not showing up when I view "Your Past Support Tickets" hyper link on the support page.
BACKGROUND
• Avada Theme Builder
• Header and Footer – Built with Custom Avada Layouts
• One page website (Custom links used in WP menu linked to Avada container menu anchors – one goes to an external site).
• Mobile and Tablet Menu - Built with Avada Off Canvas (elements include WP menu and HTML hyperlink)
• Desktop Menu - WP menu + button + WPML language switcher)
• Standard language: English
• Language Translations: Simplified Chinese + Traditional Chinese + Japanese
Issue 01 – Mobile + Tablet Menu WP Menu links shown in the Mobile and Tablet Menu - Built with Avada Off Canvas - does not translate from English into the other site languages. (Screengrab attached)
Issue 02 - Mobile + Tablet Menu WP Menu links shown in the Mobile and Tablet Menu - Built with Avada Off Canvas does not work when Simplified Chinese is selected (except for the contact form and the external link hidden link ) hidden link
Issue 03 – Desktop View WP Menu links in the hear banner sections do not scroll to container menu anchor points for Simplified Chinese hidden link (Screengrab attached)
Notes:
• The WP menu links scroll to the correct sections for all other languages
• The links are set to display on the desktop view only
Have you tried the following steps?
1. Go to Avada → Off Canvas.
2. Edit the relevant Off Canvas item.
3. Translate both the page and its Off Canvas ID.
If this is still the issue, please provide more details, including screenshots.
Thank you for your response and apologies for all the messages, the UI was not very intuitive for me. I get how it works now.
I have moved onto the live website: hidden link
The menu anchor link text labels have been translated for both of the menus, the href attributes have not been touched/translated and remain in English. I'm happy with that for now.
The priority issue the client would like resolved is to make the Chinese Simplified menu function correctly. Currently nothing happens. All the other menu anchor links, functional correctly for the other languages.
Can we resolve this first please?
Screenshot attached, please advise what else you would like to see.
I’m glad to hear that everything works correctly except for one language. I’ve checked the Chinese (Simplified) menu and found the cause of the issue.
The problem is that the menu anchor does not match the section ID on the page.
For example, for the second menu item:
• Menu label (Chinese): 信任来源 (“Trust in the Source”)
• Menu anchor: #trust-in-the-source
• Section ID on the page: id="信任来源"
Because the anchor and the section ID are different, the link cannot work.
To fix this, you can choose one of the following options:
• Option 1: Change the menu anchor in the Chinese (Simplified) menu to
#信任来源
• Option 2: Change the section ID on the Chinese (Simplified) page to
id="trust-in-the-source"
The key point is that the menu anchor and the section ID must be identical for the link to work properly.
Somehow, the section ID on the page is translated to "信任来源" for Chinese (Simplified) or was manually added.
• Option 1: Change the menu anchor in the Chinese (Simplified) menu to
#信任来源
1. Go to Appearance → Menus, select the needed menu
2. Switch to the Chinese (Simplified)
3. Change мenu anchor: #trust-in-the-source to #信任来源
Or you can check #trust-in-the-source in WPML → String Translation and translate it there.
• Option 2: Change the section ID on the Chinese (Simplified) page to
id="trust-in-the-source"
If the section ID was translated, you can try the following:
1. Go to WPML → String Translation and search for “trust-in-the-source” (not under the menu text domain, but under a domain related to your current theme).
2. Check the value for Chinese (Simplified) and make sure it matches the original value: trust-in-the-source.
If you can’t find “trust-in-the-source” in WPML → String Translation, then please check it directly in the page translation itself. It’s possible the ID was changed there instead.