Skip to content Skip to sidebar

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

Problem:
The client is using an Elementor loop to display the latest posts on their blog. While the 'Read more' button on the main loop item is translated correctly, the buttons on the two alternative loops are not, despite being available for translation in the WPML editor.
Solution:
We found that the second language homepage was not fetching the translated loop template but was instead showing the French template. We suggest the following steps to resolve the issue:
1. Rename the template titles to include language indicators (FR and EN) at the end to distinguish between languages. For example, 'Loop template FR'.
2. Manually edit the second language page and, under the Loop grid, select the correct loop template, in this case, the English one.

Please note that this solution might be outdated or not applicable to your case. If it doesn't resolve your issue, we highly recommend checking the related 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.

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 3 voices.

Last updated by Dražen 1 year, 7 months ago.

Assisted by: Dražen.

Author Posts
February 4, 2024 at 10:29 pm #15263981

romainC-18

Hello, I'm using an Elementor loop to display the 3 latest posts from my blog. There's a main loop and 2 alternative loops (it's an Elementor option). In the loop, each item has a button, but it only translates on the first item. The buttons on the two alternative loops are not translated, even though they are available for translation in the WPML editor. Here is the website URL. It concerns the loop just before the footer, at this address: hidden link The first button "lire plus" is correctly translated to "Read more", but the other two are not.

Can you help me, please?
Thank you.

P.S., for the middle item, I replaced the button widget with a title widget, but it still doesn't work.

Capture d’écran 2024-02-04 à 23.25.21 (1).png
February 5, 2024 at 3:13 pm #15266843

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with first debugging steps or if I can perhaps help with the issue quickly. How are you creating this loop? Are you using an Elementor template? If so, please make sure that you have translated both the posts for the loop as well as the Elementor template. Here is some documentation that can help guideyou with Elementor: https://wpml.org/documentation/plugins-compatibility/elementor/

Also,please check in WPML -> String Translation. Search there for the button text that is showing up untranslated and be sure to check the box to include translations in the search (at the top of the string translation table). Do you see any instances of this string that have not been translated? If so, translate them in string translation and see if that shows on the frontend.

if not, let us know and we will be happy to further troubleshoot.

February 5, 2024 at 5:52 pm #15267895

romainC-18

Hi Lauren, thank you for your response.
I am indeed using an Elementor template for the loop. Upon checking, both the article and the loop template are translated.
I've also looked into String Translation, but everything is already translated there as well.

Additionally, I tried an alternative method, namely creating and using a different template for the English language, but it didn't make any difference.

The issue really stems from the use of Alternate Templates in the Loop Grid, whose translations are not visible on the front-end.

Thanks for your help,
thanks

February 6, 2024 at 7:17 am #15269060

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

thanks for getting back.

Please make a full backup of your site (files and database) and confirm it in your next reply.
If possible please provide access to the staging website, not production.

Please note, that I might need to do some debugging procedures like enable/disable plugins, switch themes, change the default language of the user account, and/or access your website database to debug the issue furtherly.

I will share with you any changes or steps done in this process. Please let me know if you do not agree with the above or if I do not have your permission for any.

I would need to access both your site's wp-admin and FTP account, if possible.

I have enabled the private username and password fields in your next reply.

I suggest you create a new user, set it as an administrator and then add those credentials in the private fields mentioned.

You can safely add your information into these fields.

Regards,
Drazen

February 7, 2024 at 7:45 am #15274743

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

thanks for getting back.

I checked and I could see the issue, the problem is that 2nd language homepage is not fetching the translated loop template, but still showing FR template.

I have tried to reproduce it on a clean test site, so I can escalate it as a bug, but there it works fine.

Anyway, I am providing you a quick workaround you can use to fix this issue:

- Name properly template title (Add FR and EN to the title end to a different language). Example Loop template FR
- Edit 2nd language page manually, under the Loop grid select correct loop template, in your case EN one

Regards,
Drazen

February 7, 2024 at 11:09 am #15276179

romainC-18

Ok, I used this workaround, and it's ok now, thanks !