Skip Navigation

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

Problem:
The client was unable to translate the 'Icon and text' element on the contact page with the WPML Translation Editor.
Solution:
We added the following XML configuration to make the 'Icon and text' element compatible with the WPML Translation Editor:

<shortcodes>
    <shortcode>
      <tag>dt_icon_text</tag>
      <attributes>
        <attribute>dt_text_title</attribute>
        <attribute>dt_text_desc</attribute>
      </attributes>
    </shortcode>
</shortcodes>

This was added in the WPML >> Settings > Custom XML Configuration section. Afterward, we made a small change in the contact page title and updated it to reload the translation. The WPML Automatic Translation method then successfully translated the section.
For more details:
https://wpml.org/documentation/support/language-configuration-files/translate-custom-shortcodes-with-wpml/

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

Last updated by Noman 1 year, 4 months ago.

Assisted by: Noman.

Author Posts
December 24, 2023 at 6:50 pm #15125035

fatihA-10

Hello, the website address is drmertakbas.com.tr
The theme used is the 7

I can't translate the address pages on the contact page. Can you help me?
I tried to follow the steps in the Forum Section but it didn't work.

[credentials_removed]

December 24, 2023 at 7:27 pm #15125043

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting WPML Support. I have visited the contact page and I can see the untranslated section as you can see in the attached screenshot. Could you please follow the below steps and see if this resolves your issue:

1. Please open the default language contact page in Edit mode.

2. Make a small change, for example, add a space or + sign in your page/post title.

3. Update the page by pressing the “Update” button.

4. Now, please remove that small change that did in step #2.

5. Update the page again.

6. Now, please try to open the translated page in WPML Translation Editor and see if now you are able to translate the address section.

If the above steps don’t help, can you please try to follow the below doc:
https://wpml.org/documentation/support/maintaining-wpbakery-page-builder-compatibility-with-wpml/#Updating-the-Language-Configuration-File

If the issue still persists, please add the debug report in the Debug Information box. I have also enabled debug info box for your next reply: https://wpml.org/faq/provide-debug-information-faster-sup

Please let me know the results,

Thank you

contact page section.png
December 24, 2023 at 8:08 pm #15125081

fatihA-10

I did what you said, unfortunately it doesn't work.

December 26, 2023 at 6:43 am #15128209

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thanks for trying those steps, could you please confirm if you have a backup of your site so that I can debug this issue on your site.

✙ I would additionally need your permission to deactivate and reactivate Plugins and the Theme and to change configurations on the site. This is also a reason the backup is essential.

Thank you for your cooperation

January 1, 2024 at 8:27 am #15139183

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thanks for providing the login details in the original ticket. I have noticed that the “Icon and text” element was not available in WPML Translation Editor for translation. To make it WPML Translation Editor compatible I’ve added the below XML:

<shortcodes>
    <shortcode>
      <tag>dt_icon_text</tag>
      <attributes>
        <attribute>dt_text_title</attribute>
        <attribute>dt_text_desc</attribute>
      </attributes>
    </shortcode>
</shortcodes>

In WPML >> Settings > Custom XML Configuration section.

After that made a small change in the contact page title and pressed an update button to reload the translation and WPML Automatic Translation method translated that section correctly now as you can see in the attached screenshot. Could you please check and confirm?

Here is a doc for more details:
https://wpml.org/documentation/support/language-configuration-files/translate-custom-shortcodes-with-wpml/

Thank you for your cooperation and amazing patience

contact page russian.png
contact page English.png
contact page default.png