Skip Navigation

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

Problem:
The client was unable to translate the custom logo in their child theme of GeneratePress, despite adding the post ID of the media they wanted in the translation. The original logo was still displaying in both the default and translated versions.
Solution:
We asked the client for the file name of the translated logo and requested temporary access to their site for further investigation. Upon reviewing the WPML String Translation settings, we discovered two records for the media ID "11427" (the Swedish logo). Only one of these records was added to WPML String Translation. We added the correct record to String Translation, translated it, and confirmed that the logo now displays correctly on the translated page, as seen here: https://staging.ways.se/en/clients/.

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, 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 further assistance is needed, 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.

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by kristoferS-2 2 years, 8 months ago.

Assisted by: Mihai Apetrei.

Author Posts
March 22, 2022 at 6:21 pm #10850823

kristoferS-2

I have tried adding the custom_logo theme option to string translation for my child theme of GeneratePress and added the post id of the media I want on my translation but it still shows the original in both cases.

I have checked these two threads but something is still wrong:
https://wpml.org/forums/topic/logo-string-is-empty-cant-translate-it/
https://wpml.org/forums/topic/changing-the-english-logo-to-french/

March 22, 2022 at 7:59 pm #10851279

Mihai Apetrei
Supporter

Languages: English (English )

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

Hi there and thank you for the information.

1. Can you please let me know what is the name of the file that contains the correct version of the translated logo so that I know what to look for? If you also have an URL, that would definitely help.

2. I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Our Debugging Procedures

I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.

Privacy and Security Policy

We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

**IMPORTANT**

- Please make a backup of the site files and database before providing us access.

- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box.

The private box looks like this: hidden link

I will be waiting for your response.

Kind regards,
Mihai Apetrei

March 23, 2022 at 8:48 am #10854377

kristoferS-2

I should add that my default language in Swedish, and to add custom_logo to string translation with Swedish original I had to change my user profile to Swedish first, otherwise the original string would be in English, which is wrong. I do not know if this is a factor in my issue.

March 23, 2022 at 11:06 pm #10861967

Mihai Apetrei
Supporter

Languages: English (English )

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

Hi there and thank you for the credentials.

The issue was that there was another record that was the correct one.

If you go here (hidden link) and search for "11427" (the media id for the swedish logo), there will be 2 records that will show up.

One of them was added to WPML String Translation, one wasn't, and the one that wasn't, was the one that we actually needed to target.

Now, I added that to String Translation, translated it and the logo shows up fine.

Example:
hidden link

I will also attach some screenshots below.

I wish you a lovely rest of the day.

Mihai

Screenshot 2022-03-24 at 00.01.37.png
Screenshot 2022-03-24 at 00.00.25.png