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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: Asia/Singapore (GMT+08:00)

Tagged: 

This topic contains 22 replies, has 0 voices.

Last updated by Kor 2 days, 10 hours ago.

Assisted by: Kor.

Author Posts
May 19, 2025 at 7:50 pm #17050383

stefanoM-53

Background of the issue:
I am trying to change the phone number in the DIVI Global Header for different languages on my WordPress site using WPML. We had previously set the correct phone numbers for each language, and it was working fine until recently. Now, the phone number in the header has reverted to German for all languages. I also cannot find where to edit this part of the header. Here is a video describing the issue: hidden link. The issue can be seen on this page: hidden link.

Symptoms:
The phone number in the DIVI Global Header appears in German for all languages, despite having been set correctly in the past. The section to edit this header is not visible.

Questions:
Why has the phone number in the header reverted to German for all languages?
How can I find and edit the part of the header where the phone number is set?

May 20, 2025 at 11:02 am #17052302

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for contacting us.

Please try editing your header templates using this link: hidden link

This should show your translated headers and could you please check?

May 22, 2025 at 10:19 am #17060813

stefanoM-53

Hi Kor,

thanks for your reply!

I tried to translate the content through the link provided but as you can see in attachment the phone number is not showing...

Am I missing something?

Best regards,
Stefano

Bildschirmfoto 2025-05-22 um 12.18.23.png
May 22, 2025 at 10:24 am #17060906

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

To translate numerical values from the ATE, you'll need to add the following code snippet to the functions.php file of your theme first.

Please backup first and add the following code into your theme's functions.php file (at the bottom)

function wpmlsupp_7499_allow_translating_numbers( $is_translatable, $job_translate ) {
    $data = $job_translate['field_data'];
    if ( 'base64' === $job_translate['field_format'] ) {
        $data = base64_decode( $data );
    }
    if ( is_numeric( $data ) ) {
        return true;
    }
    return $is_translatable;
}
add_filter( 'wpml_tm_job_field_is_translatable', 'wpmlsupp_7499_allow_translating_numbers', 10, 2 );

Then, resave the primary language page so that the Advanced Translation Editor can rescan the page and show the numbers for translation. Let me know if this works.

May 22, 2025 at 10:31 am #17060917

stefanoM-53

Hi Kor,

I promptly added the code to the functions.php of the child theme and resaved the primary language page.

Unfortunately the phone number still not appears...

Do you have any other suggestion or maybe do you need access to the website?

Best regards,
Stefano

May 22, 2025 at 10:34 am #17060949

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

I will need to closely examine your website. Therefore, I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.

Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.

Your upcoming reply will be treated with confidentiality and will only be visible to you and me.

✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.

May 22, 2025 at 3:35 pm #17062804

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. You need to type some similar numbers on the Advanced Translation Editor search form as shown in the attached screenshot. Could you try?

Screenshot_47.png
May 22, 2025 at 4:03 pm #17062925

stefanoM-53

Hi Kor,

thanks for your reply!

I translated all the phone numbers in every language.
In the frontend unfortunately it still shows the wrong ones (always beginning with +49...)

Can you please check it?

Best regards,
Stefano

May 23, 2025 at 10:12 am #17065429

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. I can see the issue you're experiencing. Do you have a staging site I could use to investigate further? I need to deactivate some plugins to check for potential conflicts, as I'm currently having trouble reviewing the English language header at this link: hidden link

May 23, 2025 at 4:29 pm #17067398

stefanoM-53

HI Kor,

thanks for your reply.

I created a staging website here: hidden link

You can access it with the same login as the live website.

I'm not 100% sure if the language domains are working properly due to the fact that it's a subdomain but let me know if you need anything else.

Best regards,
Stefano

May 23, 2025 at 4:30 pm #17067400

stefanoM-53

PS due to the fact that we are using root domains (hunterlab.de, hunterlab.co.uk) I also read in another WPML documentation that it's not possible to switch the DIVI builder into a foreign language (this used to work earlier as we had hunterlab.de, hunterlab.de/en, hunterlab.de/fr and so on)

May 26, 2025 at 1:00 am #17070688

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. You did not share the login credentials, but instead, you shared the login token. This token is not working on the staging site and could you please check?

May 26, 2025 at 4:38 pm #17074457

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. I cannot find a solution for this, so I kindly ask for a snapshot of the site so that I can escalate this to our 2nd Tier Support for further investigation. Alternatively, with your permission, I can create one myself. For this purpose, I typically recommend using the free plugin "Duplicator." If you're already familiar with Duplicator (https://wordpress.org/plugins/duplicator/), please skip the following steps and simply send me the archive file you downloaded.

To guide you further, please adhere to these instructions:

1. View the Duplicator instructions video: hidden link

2. Consult WPML's instructions on providing supporters with a copy of your site: https://wpml.org/faq/provide-supporters-copy-site/

3. If the archive file exceeds 400MB, please use Duplicator's file filters to exclude cache, wp-uploads directory, media, and archive files.

Once you have the archive file ready, kindly share the link with us. You can utilize platforms like Google Drive, Dropbox, or similar for file sharing, as the snapshot file might be large.

Please note that your next reply will be private, visible only to you and me. You can paste the file link there. Rest assured that once the issue is resolved, I will delete the local site.

May 26, 2025 at 5:07 pm #17074570

stefanoM-53

Hi Kor,

suer, no problem. You are allowed to create a snapshot of the website.

Let me know if you need anything.

Best regards,
Stefano

May 27, 2025 at 6:52 pm #17080514

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. I've created a duplicator copy of the Website and I will check and revert back to you as quickly as possible.