Skip Navigation

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

Problem:
You are trying to translate a modal box on a global CTA bar using WPML. The Gravity Form is translated, but the title of the modal box and the close button are not appearing in the translation strings. The title uses the dynamic title of Avada, which is similar to the container text and is translatable.
Solution:
To make the title of the modal box translatable, we added a custom XML configuration. Please add the following code to your WPML settings:




fusion_modal

title
dynamic_params



For translating the close button, please refer to our documentation on adding custom XML for Elementor widgets, which can be found here: https://wpml.org/documentation/support/multilingual-tools/registering-custom-elementor-widgets-for-translation/

If this solution does not apply to your case, or if it seems outdated, 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 further assistance is needed, please open a new support ticket 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.

Tagged: 

This topic contains 4 replies, has 0 voices.

Last updated by PA_Facts_2000 5 days, 8 hours ago.

Assisted by: Kor.

Author Posts
May 13, 2025 at 8:04 am #17025739

PA_Facts_2000

Background of the issue:
I am trying to translate a modal box on a global CTA bar using WPML. The Gravity Form is properly translated, but the title of the modal box and the close button are not appearing in the translations or strings to be translated. For the title, I use the dynamic title of Avada, similar to the container text, which is translatable. This container is located halfway down the page (the red bar with: Intéressé?). You can see the issue on this page: hidden link

Symptoms:
The title of the modal box and the close button are not translatable or appearing in the translation strings.

Questions:
Why is the title of the modal box not appearing in the translation strings?
How can I make the close button translatable?

May 14, 2025 at 12:46 am #17029964

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for contacting us.

I will need to closely examine your website. Therefore, I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.

Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.

Your upcoming reply will be treated with confidentiality and will only be visible to you and me.

✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.

May 14, 2025 at 7:34 am #17030552

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience. I'd added the custom XML configuration below to here hidden link and could you please try translating the parameters shown in the attached screenshot?

<wpml-config>
  <shortcodes>
        <shortcode>
            <tag>fusion_modal</tag>
            <attributes>                
                <attribute>title</attribute>
                <attribute encoding="base64">dynamic_params</attribute>
            </attributes>
        </shortcode>    
  </shortcodes>
</wpml-config>
Screenshot_17.png
May 14, 2025 at 2:14 pm #17032866

PA_Facts_2000

Hi Kor,

Thank you for your help. With the search field I can find the translation. When I translate it, it does work :).

Why is it necessary to add a custom XML? Can I add it myself on the official website?
The close button still needs translation..

May 14, 2025 at 2:29 pm #17032923

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. You can learn more about adding the custom XML here https://wpml.org/documentation/support/multilingual-tools/registering-custom-elementor-widgets-for-translation/ . Could you give this a try for the close button?

May 15, 2025 at 9:25 am #17035932

PA_Facts_2000

Thank you, the XML works. I have no idea how I can create a custom XML myself, the how-to is way to complex and Elementor based. But the close button was a string translation. Thank you for your help.