Skip Navigation

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

Problem:
The client was facing two issues on their website. First, the string 'Related post' was translated into Danish and Spanish but stopped working on the Spanish version. Second, a layout part translated into English was not visible when translated into Spanish, despite following the provided instructions.
Solution:
1. We requested a copy of the client's website using the Duplicator plugin (https://wordpress.org/plugins/duplicator/) to troubleshoot the issues locally.
2. Upon reviewing the website copy, it was discovered that the theme was not registering the 'Related Posts' string correctly. We edited the file 'wp-content\themes\themify-ultra\includes\related-posts.php' by changing the text-domain from 'themify' to 'wpml-support-themify'. After rescanning the theme for strings, the issue was resolved, and the string displayed correctly.

If this solution does not resolve your issue, or if it seems outdated, 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 the problem persists, 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.

Tagged: ,

This topic contains 4 replies, has 2 voices.

Last updated by hanneO 7 months, 1 week ago.

Assisted by: Marsel Nikolli.

Author Posts
July 5, 2024 at 10:35 am

hanneO

Background of the issue:
I have two issues on my website hidden link where I can't make the translation work. The first issue is with the string 'Related post' which is translated into Danish and Spanish. It worked earlier but now it doesn't work on my Spanish version. The second issue is with translating a layout part. I have a post translated into English and need it translated into Spanish. When I translate the post into Spanish, the layout part is not translated or visible. I have followed the instructions here https://wpml.org/forums/topic/translation-of-layout-parts-themify/ but the layout part is not shown in the Themify strings.

Symptoms:
The string 'Related post' is not working in the Spanish version. The layout part is not translated or visible in the Spanish version of a post.

Questions:
Why is the string 'Related post' not working in the Spanish version?
How can I translate the layout part into Spanish?

July 5, 2024 at 12:22 pm
July 5, 2024 at 12:23 pm #15898502

Marsel Nikolli

Hi,

As discussed, to further troubleshoot the issue I would require a copy of your website to test it locally and further escalate the issue if needed.

You can use the Duplicator plugin(https://wordpress.org/plugins/duplicator/) to create a copy of your website and upload the backup on a file-sharing website (Google Drive, Dropbox, etc.), please send me the link to download the backup after.

* Please try to minimize the size of the backup file by excluding unnecessary media files or backup folders that might be in the "/wp-content/" folder.

I’ve set your next reply as private so you can provide the backup link.

Thank you,
Marsel

July 5, 2024 at 2:13 pm
July 5, 2024 at 2:45 pm #15899069

Marsel Nikolli

Hi,

I've sent a permission request to access the file/s provided.

Looking forward to your email.

Thanks,
Marsel

July 5, 2024 at 4:07 pm #15899423

Marsel Nikolli

Hi,

Thank you for the website copy, I've checked and apparently, there might be something wrong with the theme as the string "Related Posts" was not being registered properly.

I managed to edit the string on "wp-content\themes\themify-ultra\includes\related-posts.php", and changed the text-domain on the line code highlighted on the image attached.
It was changed from "themify" to "wpml-support-themify", and after that I scanned the theme again for strings and it was registered and showing properly on the website.

* I tested the change above locally and after on your website, please check and confirm that is working correctly for you as well.

Kind regards,
Marsel

Screenshot 2024-07-05 180211.png
July 6, 2024 at 7:46 am #15902529

hanneO

Thank you so much Marsel. It works fine on my webiste now.

Thanks a lot for all your help.

Best,

Hanne