Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- - 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00
- - - - - - -

Supporter timezone: America/Lima (GMT-05:00)

Tagged: 

This topic contains 22 replies, has 0 voices.

Last updated by Andreas W. 2 weeks ago.

Assisted by: Andreas W..

Author Posts
May 15, 2025 at 8:23 pm #17038731

Otto
WPML Supporter since 09/2015

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Please apologize, I wasn't clear enough. I am sorry.

What I meant was:
- In the root folder of the child theme
- Create a file with the name: wpml-config.xml
- Add to it the same content that was added before in WPML > Settings > Custom Configuration file

In any case, I'll take a look at the testing file. Thanks for your cooperation!

Best regards,
Otto

May 16, 2025 at 11:59 am #17041461

Otto
WPML Supporter since 09/2015

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

I created a new page in the test site with a query loop with the read more link.

The Read more text didn't appear in the translation editor, but appeared translated in the front end. This is probably because the default "Read more" string is hardcoded in the theme and translated with the .mo files.

Best Regards,
Otto

May 19, 2025 at 8:01 pm #17050391

barjD-2

Hello,

I'm not sure I understand this. The "Read more" is editable on the page - the phrase is meant to be entered in that spot when setting up the query loop block. It is not a 'set in stone' phrase that would be in an .mo file, no? Or do I misunderstand how .mo files work?

On our side, we also tested using a default theme on a totally clean install, as well as in our original Genesis theme and got the same result.

Plus, this is a WordPress block that is available in any theme.

Can WPML make this text a string that can be translated, or provide some solution for it to be translatable in the ATE?

Thank you for your help.

May 20, 2025 at 10:59 am #17052283

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

My colleague Otto is currently on vacation which is why I am assisting you today.

I see we already have a test site for this purpose:
hidden link

As you can see on the screenshot, the "Read more" text is translatable inside the Advanced Translation Editor.

The reason for that is the following custom XML config, which is saved at WPML > Settings > Custom XML Configuration:

<wpml-config>
  <gutenberg-blocks>
    <gutenberg-block type="core/read-more" translate="1">
      <key name="content" />
    </gutenberg-block>
  </gutenberg-blocks>
</wpml-config>

After adding the config to your site, you need to edit the original text inside the block on the original page, then save the page and translate it.

Can you please confirm if this solves the issue for you?

Best regards
Andreas

read more.jpg
May 20, 2025 at 7:40 pm #17054481

barjD-2

Hello,

Thank you for your response.

However, this takes us back to earlier conversations in this thread.

The problem we are running into is that yes, the "Read more" can show in the ATE but only after changing the "Read more" text in its original language. That is the problem. We can't use the original "Read more" text.

This was discussed in previous messages, as well as the results of our own tests on a clean install (which I'm still happy to give you access to).

This is not isolated to a custom theme or block; it is the native WordPress query loop block. Our tests on a clean install show that it happens with native WP posts, not just custom post types, on an almost empty child theme.

Can WPML allow the "Read more" text to be translatable in the ATE or as a string without having to change the English in any way?

Can WPML fully integrate with the native WordPress query loop block?

Thank you.

May 20, 2025 at 9:11 pm #17054660

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

After adding a custom XML config the original string always needs to be edited. Usually adding a blank space behind the text and saving the page again is sufficient for that.

Can you please confirm if this solves the issue, as our compatilbity is waiting for confirmation?

May 20, 2025 at 9:38 pm #17054673

barjD-2

Hello, yes, it does work. Thank you.

My prior concern was that adding a space would change the design spacing. However, it appears ok at the moment.

Is it possible for this to be addressed in the WP query loop block so that the translation does not require any editing or adding of spaces?

May 20, 2025 at 9:55 pm #17054711

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

It usually will not require any editing.

The editing was necessary as at the moment this string is not supported inside the XML configuration and after adding such config the string needs to be edited so that WPML can read it.

The compatilbity team will now take care of updating the XML config for this widget.