Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

Tagged: 

This topic contains 0 replies, has 0 voices.

Last updated by Waqas Bin Hasan 6 days, 14 hours ago.

Assisted by: Waqas Bin Hasan.

Author Posts
January 21, 2025 at 10:41 am #16617648

michaelG-25

Background of the issue:
I am trying to translate a button I added manually to the Divi Header on my site hidden link using WPML. The button text 'Book Demo' is repeated in another button on the main page, and there is a string translation of 'Book Demo' to 'Demo buchen'. The button is not contained in the menu because I created the website with the Divi Builder and couldn't add a button in the menu that is styled differently than the rest of its content.

Symptoms:
Translation issue with button in Divi header. The translation doesn't take effect in the header-button. I expected to see 'Book Demo' in the English header and 'Demo buchen' in the German header, but I got 'Book Demo' in both languages.

Questions:
Why is the translation not applied to the header button?
How can I ensure the header button text is translated correctly?...

January 21, 2025 at 11:44 am #16618154

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Reference to our recent chat, looks like the "Global header" hasn't been translated. I checked further and since it was created in English (secondary) language, it can be translated automatically.

I also had to close my browser for some reason and since login information wasn't saved, I've lost the login information.

Please go to Users and set a password for my user and then provide me access to check further.

Your next answer will be private, to share this information safely.

IMPORTANT: Please take a complete backup of the site to avoid data loss. I may need to activate/deactivate plugins also.

See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security.

P.S.: If you don't see the section for providing access information, do not write in the message box or the information may appear as public.

Regards.

January 21, 2025 at 12:46 pm #16618548

michaelG-25

I reset the password.

January 21, 2025 at 2:13 pm #16619209

michaelG-25

Hi, did it work?

January 22, 2025 at 5:43 am #16621058

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the reset link, I've created new password and was able to login.

I am working on this and 'll get back to you as soon as I find something or have a solution.

January 22, 2025 at 10:20 am #16622085

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation.

I was able to fix the issue by following these steps:

- Since the global header was created in English, it was not possible to translate automatically. Because WPML, so far, only supports auto-translation from Primary language to the Secondary language. And English is the secondary language in your site, so can't be translated from English to German.
- So I turned off the automatic translation temporarily.
- Added myself as translator in the site (WPML -> Translation management -> Translators).
- In WPML -> Translation Management, searched for the content in "EN" (see attached).
- Selected the "Global Header Template" and added to translation basket (Translate myself).
- From Translations, clicked the "Translate" button and in ATE, translated the "Book Now".
- Completed the translation and it is now working fine (see attached or hidden link).

I've turned on the automatic translation after that.

tm.jpg
book demo.jpg