Salta la navigazione

Questo thread è stato risolto. Ecco una descrizione del problema e della soluzione.

Problem:
The client is unable to translate the link in a custom Elementor widget button even after following the WPML documentation on how to register page builder widgets for translation.
Solution:
1. We recommend checking if the method for translating URLs, shortcodes, and HTML attributes using the Advanced Translation Editor is helpful. You can find the documentation here: https://wpml.org/faq/how-to-translate-urls-shortcodes-and-html-attributes-using-the-advanced-translation-editor/
2. If the issue persists, it may be necessary to review the XML code that was added to register the widget for translation.
3. Additionally, we found that the button in question is used in the header for the partner page and is linking to itself. We suggest changing the link to point to a different page or avoiding linking to the same page where the button is used.

If this solution doesn't look relevant, please open a new support ticket in our forum: https://wpml.org/forums/forum/english-support/

Questo è il forum di assistenza tecnica di WPML, il plug-in multilingue di WordPress.

La sua lettura è permessa a tutti, ma la pubblicazione è riservata esclusivamente ai clienti di WPML. Il team di WPML risponde sul forum 6 giorni su 7, 22 ore su 24.

Nessun supporter è disponibile a lavorare oggi sul forum Italian. Sentitevi liberi di creare ticket e li gestiremo il prima possibile quando saremo online. Grazie per la comprensione.

Questo ticket contiene 6 risposte, ha 2 voci.

Ultimo aggiornamento da Ilyes 7 mesi, 3 settimane fa.

Assistito da: Ilyes.

Autore Messaggi
Gennaio 17, 2024 a 6:03 pm #15196489

Philip

Hello,

I tried to register a custom elementor widget by following the following documentation:
https://wpml.org/documentation/support/language-configuration-files/how-to-register-page-builder-widgets-for-translation/

And everything works fine but the link in the buttons cant be translated.

How can I make it so, that the button link can be translated as well?

My page is: getyourdeal.app

Gennaio 17, 2024 a 11:57 pm #15197424

Ilyes
Supporter

Lingue: Inglese (English ) Francese (Français )

Fuso orario: Pacific/Easter (GMT-05:00)

Hello,

Thank you for contacting WPML support team,

Could you please check if this URL translation method helps :

https://wpml.org/faq/how-to-translate-urls-shortcodes-and-html-attributes-using-the-advanced-translation-editor/

If not, we might need to review the XML code that you added,

Best,

Gennaio 24, 2024 a 1:34 pm #15221953

Philip

Sadly this solution did not resolve my issue.
Here is the entire xml code I added. I am facing the issue is with the Element_Ready_Download_Button and the Element_Ready_Dual_Button

<wpml-config>
<elementor-widgets>
<widget name="Element_Ready_Download_Button">
<conditions>
<condition key="widgetType">Element_Ready_Download_Button</condition>
</conditions>
<fields-in-item items_of="button_content">
<field type="Title" editor_type="LINE">title</field>
<field type="Subtitle" editor_type="LINE">subtitle</field>
<field type="Link URL" editor_type="LINK" key_of="button_link">url</field>
</fields-in-item>
</widget>
<widget name="Element_Ready_Dual_Button">
<conditions>
<condition key="widgetType">Element_Ready_Dual_Button</condition>
</conditions>
<fields-in-item items_of="button_content">
<field type="Title" editor_type="LINE">title</field>
<field type="Button Link" editor_type="LINK" key_of="button_link">url</field>
</fields-in-item>
</widget>
<widget name="Element_Ready_Area_Title_Widget">
<conditions>
<condition key="widgetType">Element_Ready_Area_Title_Widget</condition>
</conditions>
<fields>
<field type="Title" editor_type="VISUAL">title</field>
<field type="Subtitle" editor_type="LINE">subtitle</field>
<field type="Description" editor_type="VISUAL">description</field>
</fields>
</widget>
<widget name="text-editor">
<conditions>
<condition key="widgetType">text-editor</condition>
</conditions>
<fields>
<field type="Text Editor" editor_type="AREA">editor</field>
</fields>
</widget>
<widget name="heading">
<conditions>
<condition key="widgetType">heading</condition>
</conditions>
<fields>
<field type="Title" editor_type="AREA">title</field>
</fields>
</widget>
<widget name="Element_Ready_Box_Widget">
<conditions>
<condition key="widgetType">Element_Ready_Box_Widget</condition>
</conditions>
<fields>
<field type="Title" editor_type="LINE">title</field>
<field type="Description" editor_type="AREA">description</field>
</fields>
</widget>
<widget name="appie-testimonial">
<conditions>
<condition key="widgetType">appie-testimonial</condition>
</conditions>
<fields-in-item items_of="list">
<field type="Name" editor_type="LINE">title</field>
<field type="Content" editor_type="AREA">content</field>
</fields-in-item>
</widget>
</elementor-widgets>
</wpml-config>

Gennaio 25, 2024 a 7:39 pm #15227973

Ilyes
Supporter

Lingue: Inglese (English ) Francese (Français )

Fuso orario: Pacific/Easter (GMT-05:00)

Hello,

I would like to ask for temporary access to your test site’s wp-admin to investigate the issue further.

Kindly provide me with where these buttons are used in front-end,

If necessary, I may need to replicate your site locally. To do this, I will temporarily install a plugin called “Duplicator” on your site, which will enable me to create a copy of your site and its content. Once the problem has been resolved, I will delete the local site. Please let me know if you agree to this.

It is important to note that you should back up your site and database before proceeding, and you can use a plugin like Duplicator for this purpose. Here’s a link to the plugin: http://wordpress.org/plugins/duplicator/

If you do not see the form below, please do not enter your credentials as they will be publicly exposed:

link nascosto

For your privacy and security, please ensure that you make your reply a private one.

Best regards,

Gennaio 29, 2024 a 3:01 pm #15239260

Ilyes
Supporter

Lingue: Inglese (English ) Francese (Français )

Fuso orario: Pacific/Easter (GMT-05:00)

Hello,

Thank you for the access,

I have recorded this video to show you how to find and translate the buttons URLs : link nascosto

I'm assuming those are the links you are talking about, I hope that answered your questions,

Best,

Gennaio 30, 2024 a 8:01 pm #15246416

Philip

Thank you a lot. Sadly I still encounter the issue in the theme builder. To illustrate, I recorded a loom video myself:
link nascosto

Thank you again for all your help

Gennaio 31, 2024 a 6:55 pm #15251343

Ilyes
Supporter

Lingue: Inglese (English ) Francese (Français )

Fuso orario: Pacific/Easter (GMT-05:00)

Hello again,

I have recorded a video explaining what I found here and below you can find my conclusion written down: link nascosto

Conclusion : I see that this button is used in header for partner page, how come the button is linking to itself? I think that it the main issue.

Any other link other than the link of page itself work, please try changing it or avoid pointing the link to the same page as where you are using it.

Best,

Febbraio 1, 2024 a 8:39 am #15253253

Philip

Great, thank you so much. I now changed the link in the header for partner to a Bitly and it works fine. Thank you again, have a great day.

Philip ha confermato che il problema è stato risolto su 2024-02-01 08:39:09.
Questo ticket è stato chiuso. Se sei un cliente di WPML e hai bisogno di aiuto, apri un nuovo ticket di assistenza.