Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is facing an issue where the anchor part of internal links in a translated template remains untranslated, causing the anchor not to be found.
Solution:
We recommend manually updating the button link by following these steps:
1. Add the following XML in WPML >> Settings > Custom XML Configuration section:

<widget name="button"><br />      <fields><br />        <field>text</field><br />        <field>link>url</field><br />      </fields><br /></widget>

2. Make a small change in the default language page to reload the translation.
3. Open the translated page and search for the URL and add the translation as needed.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable 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.

Tagged: 

This topic contains 0 reply, has 0 voices.

Last updated by frankG-4 1 month, 1 week ago.

Assisted by: Noman.

Author Posts
April 23, 2025 at 8:21 am #16958334

frankG-4

Background of the issue:
I am trying to translate a template with a few buttons containing anchor links to other internal pages on my site hidden link. The menu-anchors in these pages are translated. In the translation of this template, the first part of the link to the page is translated correctly, but the anchor itself remains untranslated, so the anchor is not found. In the template, I cannot find any links, even when I search for "https:".

Symptoms:
The anchor part of the internal links in the translated template is not being translated, causing the anchor not to be found.

Questions:
How can I ensure that the anchor links are translated correctly in the template?
Why are the anchors not being translated even though the page links are?

April 23, 2025 at 11:27 am #16959287

frankG-4

You asked me to make a test with a new German page. I inserted the same button into a new page and translated this page to English the link is translated the same way as before.
Link to Page is translated, but the Menü Anchor is not.
hidden link

April 23, 2025 at 3:24 pm #16961115

Noman
WPML Supporter since 06/2016

Languages: English (English )

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

Thanks for trying it. To take a closer look at this issue, please provide temporary access (WP-Admin and FTP Login info) to your site (preferably staging site), so that I can look into your setup and debug the issue.

Your next answer will be private which means only you and I have access to it.

=== Please backup your database and website ===

✙ I would additionally need your permission to deactivate and reactivate Plugins and the Theme and to change configurations on the site. This is also a reason the backup is really important.

Thank you for your cooperation

April 24, 2025 at 11:40 am #16964065
frankG-4

Please have additionally a look at the wpml menu. I am missing the "translation management" entry since the latest update of WPML.

New threads created by Noman and linked to this one are listed below:

https://wpml.org/forums/topic/missing-the-translation-management-entry/

April 24, 2025 at 11:55 am #16964099

Noman
WPML Supporter since 06/2016

Languages: English (English )

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

Thanks for providing the login details. Could you please upgrade my user role to Administrator so that I can access the site dashboard and debug this issue.

As per our support policy, we address one issue per ticket to ensure focused and efficient assistance. Therefore, I’ve created a new ticket specifically for the Translation Management missing problem at: https://wpml.org/forums/topic/missing-the-translation-management-entry/

Thank you

April 24, 2025 at 12:54 pm #16964469

frankG-4

Oh Noman, I am sorry. You have admin rights now...

April 24, 2025 at 3:12 pm #16965057

Noman
WPML Supporter since 06/2016

Languages: English (English )

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

I logged in to your site and followed these steps:

1. Opened the default language "Test WPML" page in Edit mode:
hidden link

2. Made a small change in the page title and clicked "Update" to reload the translation.

3. Reverted the change and clicked "Update" again.

4. Clicked the secondary language icon to open the translated page in the WPML Translation Editor, the button URL was then available for translation.

5. I edited the hash part of the URL, and it now shows the updated link correctly.

Could you please check if this resolves the issue, or let me know if I missed anything?

Thank you for your cooperation

frontend button URL.jpg
button URL.jpg
April 24, 2025 at 3:47 pm #16965346

frankG-4

Hi Noman, thanks for this update, I can see the button link as well. But I tried this with another page and it did not work. Can you please test this again with this page (under /templates , second page "Digitale Handrefraktometer Vergleich") hidden link.

I tried to change the Page title to Digitale Handrefraktometer-Vergleich, updated and deleted the - again and updated and translated to EN or ES, but I do not find any button link, only the button title.

This is the page, where the problem happens.

April 24, 2025 at 5:08 pm #16965644

Noman
WPML Supporter since 06/2016

Languages: English (English )

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

Thanks for the additional details. To update the button link manually, I followed the below steps:

1. Added below XML in WPML >> Settings > Custom XML Configuration section:

<widget name="button">
      <fields>
        <field>text</field>
        <field>link>url</field>
      </fields>
    </widget>

2. Made a small change in the default language page to reload the translation.

3. Opened the translated page and searched for the URL and added translation as you can see in the attached screenshot.

Could you please try to follow these steps and see if this resolves the issue.

Thank you

URL search.jpg
April 25, 2025 at 6:59 am #16967024

frankG-4

Yes, thank you. With this solution I can live.