Skip to content Skip to sidebar

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

Problem:
I want my Avada contact form to be translated from EN to FR and ES

When I go to the Advanced Translator Editor, I do see the field label but just the title of this form.

Solution:

1- Go to WPML-> Settings-> Custom XML tab
2- Add the following code

<wpml-config>
  <shortcodes>
    <shortcode>
      <tag>fusion_form_text</tag>
      <attributes>
        <attribute>label</attribute>
        <attribute>placeholder</attribute>
      </attributes>
    </shortcode>
    <shortcode>
      <tag>fusion_form_phone_number</tag>
      <attributes>
        <attribute>label</attribute>
        <attribute>placeholder</attribute>
      </attributes>
    </shortcode>
    <shortcode>
      <tag>fusion_form_email</tag>
      <attributes>
        <attribute>label</attribute>
        <attribute>placeholder</attribute>
      </attributes>
    </shortcode>
    <shortcode>
      <tag>fusion_form_textarea</tag>
      <attributes>
        <attribute>label</attribute>
        <attribute>placeholder</attribute>
      </attributes>
    </shortcode>
    <shortcode>
      <tag>fusion_form_submit</tag>
    </shortcode>
    <shortcode>
      <tag>fusion_form_notice</tag>
      <attributes>
        <attribute>success</attribute>
        <attribute>error</attribute>
      </attributes>
    </shortcode>
  </shortcodes>
</wpml-config>

3- Edt the form in the default language
4- Make a minor edit and update it
5- Update the translation

Relevant Documentation:
https://wpml.org/documentation/translating-your-contents/page-builders/how-to-register-page-builder-modules-and-theme-options/

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

Last updated by Osama Mersal 1 year, 8 months ago.

Assisted by: Osama Mersal.

Author Posts
November 30, 2023 at 9:38 am #14960285

julienA-28

Tell us what you are trying to do?
I want my Avada contact form to be translated from EN to FR and ES
The form is called "Starter Contact Form 2282 (P)"
When I go to the Advanced Translator Editor, I do see the fields label but just the title of this form (see attachment).

Is there any documentation that you are following?
Nope - I've checked previous support tickets but haven't found something similar.

Is there a similar example that we can see?
No

What is the link to your site?
I'm working on staging: hidden link (En Version) and hidden link (French Version)

Screenshot 2023-11-30 at 10.35.23.png
November 30, 2023 at 11:21 am #14961441

Osama Mersal
WPML Supporter since 02/2020

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

Timezone: Africa/Cairo (GMT+03: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 would need your permission to de-activate and re-activate the Plugins and the Theme and change configurations on the site. This is also a reason 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

November 30, 2023 at 12:55 pm #14962707

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

Thanks for the access details. I was able to fix the issue by the following steps:

1- Go to WPML-> Settings-> Custom XML tab
2- Add the following code

<wpml-config>
  <shortcodes>
    <shortcode>
      <tag>fusion_form_text</tag>
      <attributes>
        <attribute>label</attribute>
        <attribute>placeholder</attribute>
      </attributes>
    </shortcode>
    <shortcode>
      <tag>fusion_form_phone_number</tag>
      <attributes>
        <attribute>label</attribute>
        <attribute>placeholder</attribute>
      </attributes>
    </shortcode>
    <shortcode>
      <tag>fusion_form_email</tag>
      <attributes>
        <attribute>label</attribute>
        <attribute>placeholder</attribute>
      </attributes>
    </shortcode>
    <shortcode>
      <tag>fusion_form_textarea</tag>
      <attributes>
        <attribute>label</attribute>
        <attribute>placeholder</attribute>
      </attributes>
    </shortcode>
    <shortcode>
      <tag>fusion_form_submit</tag>
    </shortcode>
    <shortcode>
      <tag>fusion_form_notice</tag>
      <attributes>
        <attribute>success</attribute>
        <attribute>error</attribute>
      </attributes>
    </shortcode>
  </shortcodes>
</wpml-config>

3- Edt the form in the default language
4- Make a minor edit and update it
5- Update the translation

Please update the form to Spanish and check if it works correctly.

Best regards,
Osama

November 30, 2023 at 2:15 pm #14963611

julienA-28

Thanks a lot, Osama. Yes. It's working. Fields are now correctly traduced.
I was also testing the form submission. It's working in English, data are stored in the DB and I receive an email notification. But It's not working in FR or ES. Not sure if this is linked. Is that something you could help? Let me know if I should create another ticket for this one.

Best regards,
Julien

November 30, 2023 at 2:38 pm #14964017

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi Julien,

It's great to hear that the issue is fixed 🙂. In our forum, we try to keep one issue per ticket.
As the original issue is resolved, may I kindly ask you to open a new ticket for your additional question?
Continuing with one ticket per issue helps supporters focus on one issue at once and enables other users to find solutions to their questions faster.

Thanks for your understanding!

Best regards,
Osama

November 30, 2023 at 2:49 pm #14964141

julienA-28

Sure Osama. I'll post another ticket.
Thanks a lot for your help!
Julien