Skip Navigation

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

Problem:
You are trying to translate all link targets on your website using the Divi side by side buttons module, but the links are still pointing to English pages on the French version of the website. Despite re-translating the page, the side by side buttons on the home page and articulated arms page still link to English pages.
Solution:
We found that the dual buttons module needed to be registered for translation. We registered it by adding the following code to WPML-> Settings-> Custom XML tab:

<wpml-config><shortcodes><shortcode><tag>ba_dual_button</tag><attributes><attribute>btn_a_text</attribute><attribute>btn_a_link</attribute><attribute>btn_b_text</attribute><attribute>btn_b_link</attribute></attributes></shortcode></shortcodes></wpml-config>

After adding this code, update the home page in the default language and update its translation using the translation editor to translate the URLs in the editor. Check the French home page to see if the buttons now correctly link to the French pages.

If this solution does not resolve your issue or seems outdated, we 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 at WPML support forum.

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

Last updated by nabilA-4 1 month ago.

Assisted by: Osama Mersal.

Author Posts
January 11, 2025 at 5:42 pm #16584501

nabilA-4

Background of the issue:
I am trying to translate all link targets on my website using the Divi side by side buttons module. However, the links are still pointing to English pages on the French version of the website. I made edits on the English version, published, and re-translated the page, which fixed most links, but the side by side buttons on the home page and articulated arms page still link to English pages. The issue can be seen here: hidden link and hybex.com home page

Symptoms:
Buttons on the French site are linking to English pages instead of French pages.

Questions:
How can I ensure that all button links on the French version of my site point to the correct French pages?
Why are the side by side buttons not updating their links after re-translation?

January 12, 2025 at 1:29 pm #16585659

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please backup your database and website ❌

✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

January 14, 2025 at 5:02 am #16591203

nabilA-4

You have my permission for the requested things.

January 14, 2025 at 10:09 am #16592194

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for the access details. I checked the dual buttons issue and found that this module needed to be registered for translation, so I registered it by adding the following code to WPML-> Settings-> Custom XML tab.

<wpml-config>
<shortcodes>
  <shortcode>
  <tag>ba_dual_button</tag>
    <attributes>
    <attribute>btn_a_text</attribute>
      <attribute>btn_a_link</attribute>
      <attribute>btn_b_text</attribute>
      <attribute>btn_b_link</attribute>
    </attributes>
  </shortcode>
  </shortcodes>
</wpml-config>

After that, I updated the home page in the default language and updated its translation using the translation editor to translate the URLs in the editor. Kindly check the French home page and let me know if the buttons work correctly. (hidden link)

Best regards,
Osama

January 15, 2025 at 4:09 pm #16598175

nabilA-4

Thank you