Skip Navigation

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

Problem:
You have set up automatic translations for URLs in WPML to generate from titles, and while URLs from the menu are translated, URLs from buttons are not.
Solution:
If you're experiencing this issue, we recommend ensuring that the button links in your theme use full URLs in the original language. WPML does not recognize partial URLs for automatic translation. You can update these full URLs in the original language and then proceed with the translation. Alternatively, you can manually translate the partial URLs when using the Advanced Translation Editor (ATE).

This solution might be outdated or not applicable to your specific 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 issue persists, please open a new support ticket at WPML support forum for further assistance.

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 1 reply, has 0 voices.

Last updated by Carlos Rojas 2 months, 1 week ago.

Assisted by: Carlos Rojas.

Author Posts
November 25, 2024 at 2:08 pm #16440135

robertv-38

Background of the issue:
I've set up automatic translations for my URLs within WPML > Settings > Page URL > Automatically generate out of title. When checking translations, navigating out of my menu, all of the URLs are translated.

Symptoms:
When I navigate to another page from a button (not a part of my menu), the URL is not translated.

Questions:
What is the reason that one URL gets translated while another does not?
Could this be because the URL comes from a button in my theme?
Do I need to manually adjust all the URLs from the buttons now?

November 25, 2024 at 2:26 pm #16440224

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Hello,
Thank you for contacting us

According to the description of the issue and the attached screenshot of your message, the URL is partial and WPML doesn't recognize it as a URL. To get the URL automatically translated you must add the full URL to the button link in the original language and then update the translation. Alternatively, you can manually translate the partial URL when translating the content using ATE.

Regards,
Carlos