Skip Navigation

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

Problem:
The client is unable to find the string for the translation of the custom text in the Divi Pixel plugin's Table of Contents module.
Solution:
We recommend the following steps to translate the Pixel Table of Contents elements using WPML's Advanced Translation Editor:

1.Please make sure to add the table title manually in Pixel Table of Contents “Table Title” field.

2. Insert the following XML in the WPML >> Settings > XML Configuration section:

<wpml-config>
  <shortcodes>
    <shortcode>
      <tag>dipi_table_of_content</tag>
      <attributes>
        <attribute>table_title</attribute>
      </attributes>
    </shortcode>
  </shortcodes>
</wpml-config>

3. Make a small change in the default language page and then open the translated page in WPML's Translation Editor. The table title should now be available for translation.

4. Add the translation as needed, and it should work correctly.
For more details, you can refer to our documentation on registering page builder content for translation.

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

Last updated by Noman 1 year, 1 month ago.

Assisted by: Noman.

Author Posts
January 2, 2024 at 10:36 am #15142826

viliamM

Hi, I use divi pixel plugin that is compatible with wpml - anyway, in the module Table of Contents I cannot find the string for the transaction of the custom text.

Can you help me?

January 2, 2024 at 1:26 pm #15143586

Noman
Supporter

Languages: English (English )

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

I have created a fresh WP and installed the WPML plugins, here is the auto login URL:
hidden link

Please configure the WPML plugins as you did on your site, and install the Divi theme, and Divi Pixel plugin, add one or two pixel widgets/elements to the page and try to translate it and let me know the results.

Just so you know, we only need that specific Divi Pixel widget/element functionality, so you don't need to set up an entire website or clone your existing site. You can see more details here: https://wpml.org/faq/how-to-reproduce-issues-and-share-them-with-wpml-support/

Please let me know the results,
Thank you

January 3, 2024 at 12:01 pm #15146325

viliamM

Hi,

I have installed Divi and Divi Pixel plugins and created the page hidden link.

I have translated the content into English (the original language is Slovak).

I have run the process to collect strings from the plugin Divi Pixel.

I have not found the "Obsah" in the list of strings. I have found instead the term Table of Contents - and try to put Obsah as the Slovak translation - and it worked on the site!

But this means, I cannot change the text Table of Contents as it is the default English string - I expected that I would be able to find the string "Obsah" in the Slovak version - as I entered this text in the Slovak translation of the site - and then I will be able to translate it into English on my own.

I also added the new module from divi pixel there - it is a countdown - I have followed the same way - I translated the module - translated texts, but then I was able to find them in the Page translation - so I can translate them manually or automatically (see the attached image).

I think the implementation for the Table of Contents module is done in a non-standard way - I expected that I could see the text I entered in the module in the translation screen so I could translate it with the other texts on the page.
Instead, I need to find it in the string translation (but the default English version) and then translate it.

Table of Contents.jpg
Countdown.jpg
January 3, 2024 at 12:31 pm #15146461

viliamM

Please, check the site now - i think, something got stuck and now the translation from the module is not working anymore and I don't know why. only the string translation is working there.
I have also recorded the video which I plan to share with the plugin maker, because I think there is some issues with the way how it is implemented in the table of contents module.

See the video: hidden link

January 4, 2024 at 4:24 pm #15152322

Noman
Supporter

Languages: English (English )

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

Thanks for replicating this issue at the fresh WP site, I appreciate your patience regarding this and all the help you put in with the troubleshooting you did yourself. I’m able to translate the Pixel Table of Contents elements using WPML Advanced Translation Editor by following the below steps:

1. Added the below XML in WPML >> Settings > XML Configuration section:

<wpml-config>
  <shortcodes>
    <shortcode>
      <tag>dipi_table_of_content</tag>
      <attributes>
        <attribute>table_title</attribute>
      </attributes>
    </shortcode>
  </shortcodes>
</wpml-config>

2. Made a small change in the default language page and opened the translated page in WPML Translation Editor and it shows the table title for translation as you can see in the attached screenshot.

3. Added the translation and it works correctly as you can see in the below links:

Default language: hidden link
Translated language: hidden link

Here is a doc for more details:
https://wpml.org/documentation/support/language-configuration-files/register-page-builder-content-for-translation/

Please let me know if this helps resolve your issue or if you need any more help.

Thank you for your cooperation and amazing patience

title sk.png
title en.png
update 1.png
January 10, 2024 at 10:16 pm #15171776

viliamM

Hi,
I have followed your advice and added the code in the XML Section, then done some updates on the page and opened the translation editor - but unfortunately, I cannot see the content tag there.

See my two images: XML page + the content translation page.

I can create access to the site - so you can check. Maybe I made some mistake somewhere.

XML Section.jpg
Page Translation.jpg
January 11, 2024 at 7:50 am #15172411

Noman
Supporter

Languages: English (English )

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

Thanks for trying the above steps. Could you please try to follow the below steps and see if this resolves your issue:

1. We have recently released WPML 4.6.9, could you please take a backup of your site and update it to the latest version and see if this resolves your issue.

You can update it from Plugins >> Add New page, click the Commercial tab, and then click the “Check for updates” button. Here is the screenshot for more details:
https://wpml.org/wp-content/uploads/2020/04/wpml-force-plugin-update-1.png

2. Please make sure to add the table title manually in Pixel Table of Contents “Table Title” field as you can see in the attached screenshot.

3. If the issue persists, kindly perform the following steps to isolate the cause of the issue:
- Please take a complete backup of your site first for safety reasons.
- Deactivate all plugins except WPML and Divi Pixel plugins.
- Switch to the parent Divi theme
- If the issue is gone, reactivate each plugin one by one to identify the one causing the issue.

Please let me know the results,

Thank you for your cooperation

table title.png
January 13, 2024 at 6:30 pm #15181715

viliamM

Hi,
it is working for me now. I have to update the current table of contents text and then make some changes to the text to trigger the translation update.