Skip Navigation

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

Problem:
The client was unable to find the 'Read More' text in the string translations after translating their website into French and German using WPML. This text is part of a button used in several places on their website.
Solution:
We recommended adding a custom XML configuration to WPML to handle the translation of this specific element. Here are the steps we suggested:
1. Create a custom XML configuration for the 'Read More' button. You can follow the guide on how to do this here: Translate Custom Shortcodes with WPML.
2. Add the following XML code to WPML → Settings → Custom XML Configuration:

<wpml-config>
  <shortcodes>
    <shortcode>
      <tag>vc_column_inner</tag>
      <attributes>
        <attribute>closed_txt</attribute>
      </attributes>
    </shortcode>
  </shortcodes>
</wpml-config>

3. Modify the original page slightly and save it. Then, revert the changes and navigate to the WPML translation editor to update the page translation.

Please note that this solution might be outdated or not applicable to your specific case. If this solution does not resolve your issue, 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 you still need assistance, please open a new support ticket at WPML support forum.

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 3 replies, has 0 voices.

Last updated by catherineB-13 2 months, 4 weeks ago.

Assisted by: Andrey.

Author Posts
March 13, 2025 at 12:51 pm #16811884

catherineB-13

Background of the issue:
I have finished the translations to French and German using WPML, but there is one last element I can't find in string translations. It is a text/link/button 'Read More' placed in several texts on the page: hidden link. I found the corresponding code using the Inspector: <span class="btn-more-wrap state-closed style-light read_more_of_left std-top-mrgn">CloseRead More</span></span>.

Symptoms:
I can't find the 'Read More' text in string translations.

Questions:
How can I find the 'Read More' element in string translations?

March 13, 2025 at 9:28 pm #16813746

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for contacting WPML support.

Have you attempted to locate the strings in this manner?

1. Go to WPML → String Translation.
2. Enable the option to auto-register the strings.
3. Navigate to the page where untranslated strings are displayed.
4. Return to WPML → String Translation, disable the option, and verify if the given string has been registered.
5. Translate the string.

https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/

March 14, 2025 at 9:26 am #16815417

catherineB-13

Hi Andrey,

I tried to locate the text this way, but it does not appear in the String Translations.

See attached image

None of these examples of "Read More” are the right one.

Is there some other way to get to it?

As I mentioned before, I located it in the website source code using the Inspector, but I don't know if this information can be useful:

<span class="btn-more-wrap state-closed style-light read_more_of_left std-top-mrgn">CloseRead More</span></span>

Many thanks for your help,
Best,

Capture d’écran 2025-03-14 à 10.22.07.png
March 14, 2025 at 9:29 am #16815452

catherineB-13

Just to add :

I noticed that the code I copied into my reply does not display correctly. The actual codelooks like this : (see attached image)

Capture d’écran 2025-03-14 à 10.28.09.png
March 14, 2025 at 9:43 am #16815563

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for your feedback.

I need to request temporary access (wp-admin and FTP) to your site—preferably to a test site where the problem has been replicated if possible—in order to be of better help. When you log in to leave your next reply, you will find the needed fields below the comment area. The information you will enter is private, meaning only you and I can see and access it.

March 14, 2025 at 3:52 pm #16817838

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for your feedback.

I found out that this string needs to be added to the translation to the translation editor.

Using this guide: https://wpml.org/documentation/support/language-configuration-files/translate-custom-shortcodes-with-wpml/, I created a config for the button and added it to WPML → Settings → Custom XML Configuration.

<wpml-config>
  <shortcodes>
    <shortcode>
      <tag>vc_column_inner</tag>
      <attributes>
        <attribute>closed_txt</attribute>
      </attributes>
    </shortcode>
  </shortcodes>
</wpml-config>

Then, I updated the page translation. To do this, I modified the original page slightly, saved it (reverted), and then navigated to the WPML translation editor to complete the translation.

Screenshot 2025-03-14 at 17.48.55.png
Screenshot 2025-03-14 at 17.47.12.png
Art-Handling-Spedition-–-Shipping-Fine-Art.png
March 15, 2025 at 11:02 am #16819670

catherineB-13

Thank you Andrey, the display is good! I will look at the link (guide) and try to understand how you did this, for future use.

So my issue is resolved, have a great weekend 🙂
Best,
Catherine