Skip Navigation

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

Problem:
You are trying to translate links from buttons created with Flatsome's UX Builder. While you can translate the text through String Translation, you are unable to translate the URL behind these buttons.
Solution:
We recommend following the tutorial for translating pages/posts created using UX Builder, which can be found here: https://wpml.org/documentation/theme-compatibility/create-multilingual-websites-using-flatsome-and-wpml/
Additionally, please update your language configuration code as follows:

<wpml-config>
<shortcodes>
<shortcode>
<tag>button</tag>
<attributes>
<attribute>text</attribute>
<attribute type="link">link</attribute>
</attributes>
</shortcode>
</shortcodes>
</wpml-config>

After updating the code, please update the original language page and then its translation to see if there is any difference in the results.

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 needed, please open a new support ticket for further assistance at https://wpml.org/forums/forum/english-support/.

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 topic contains 2 replies, has 2 voices.

Last updated by maartenB-13 3 years, 7 months ago.

Assisted by: Bigul.

Author Posts
October 31, 2021 at 10:36 pm #9899449

maartenB-13

Tell us what you are trying to do?

I'm trying to translate links from buttons made with Flatsome's UX Builder.
I can find those links in String Translation but as you can see in the picture attached I can only translate the text, not the url behind it.

How can I translate the link behind these buttons?
They look like this: [button text="Meer info over Lunki" style="outline" link="hidden link"]

In the meanwhile I've added this code to custom XML but this doesn't help:

<wpml-config>
<shortcodes>
<shortcode>
<tag>button</tag>
<attributes>
<attribute>text</attribute>
<attribute>link</attribute>
</attributes>
</shortcode>
</shortcodes>
</wpml-config>

Can you helpv me please?

Impossible to translate url.png
November 1, 2021 at 4:07 am #9899885

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Welcome to the WPML support forum. I will do my best to help you to resolve the issue.

I hope you are following this tutorial for translating the pages/posts created using UX Builder - https://wpml.org/documentation/theme-compatibility/create-multilingual-websites-using-flatsome-and-wpml/

Please try with the following language configuration code and update the original language page & then its translation. After that check is there any difference in the results.

<wpml-config>
<shortcodes>
<shortcode>
<tag>button</tag>
<attributes>
<attribute>text</attribute>
<attribute type="link">link</attribute>
</attributes>
</shortcode>
</shortcodes>
</wpml-config>

--
Thanks!

Bigul