Skip Navigation

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

Problem:
The client needed to display different header logos for the English and Portuguese versions of their site using the GeneratePress theme. Each logo had text in the respective language and was not subject to translation since they were images.

Solution:
1. We recommended the client to use the WPML String Translation to find the logo image by searching for the image name (e.g., "logo-infancia-inclusiva") or by the media ID, which can be found in the URL when the image is opened in the WordPress backend under Media.
2. Depending on the theme's setup, the client may need to translate the link of the image or the ID. The client should use the ID of the image that already has the translated logo.
3. We advised treating images like text strings, meaning that different images can be set as translations of each other.
4. We offered to look into the issue further if the client provided site access, which they did, and we confirmed successful login to investigate the issue.

Please note that this solution might not apply to your situation due to updates or differences in your setup. If this is the case, we encourage you to check the related known issues, verify the version of the permanent fix, and ensure you have the latest versions of themes and plugins installed. If you still encounter problems, please open a new support ticket with us.

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 8 replies, has 2 voices.

Last updated by claudioR-25 11 months, 1 week ago.

Assisted by: Mihai Apetrei.

Author Posts
March 3, 2024 at 1:30 am #15366247

claudioR-25

Hi,

I must put two header logos in their proper places. One logo has words in Portuguese and other one has words in English, the two idioms of my site.

What I need to do is to put each logo in their corresponding header (Portuguese and English) with different words in it , namely Infância Inclusiva and Inclusive Childhood. How to do it? Thanks, cc
P.S. BTW I use a GeneratePress template.

logo inclusive childhood.jpg
logo infancia inclusiva.jpg
March 4, 2024 at 1:48 pm #15369909

Mihai Apetrei
Supporter

Languages: English (English )

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

Hi there.

Please use the guide here (https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/) and search either for the name of your logo image ("logo-infancia-inclusiva") or by your media ID (you should be able to see it in the URL at the top when you open it in WordPress backend > Media - it should be an id made out of a few numbers).

Depending on how the theme is written, you have to translate either the link of the image or the ID (use the ID of the image that has the logo translated already).

Please let me know how that goes and if you still need help with this.

Kind regards,
Mihai Apetrei

March 4, 2024 at 2:33 pm #15370187

claudioR-25

Hi Mihai thanks but your orientation sound quite tricky to me. Remember, what I want to do is to put an image in the header of the English version of my site that is different from the version in Portuguese. But both are images without any need to translate words.

March 4, 2024 at 4:44 pm #15371330

Mihai Apetrei
Supporter

Languages: English (English )

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

Hi there.

I definitely understand what you want to accomplish 🙂

Think about images like they would be text: you can translate images by using the same steps you use to translate text. So, you can use a different images and set it as the translation of another image.

If you would like me to look into this for you, I will need site access.

I am enabling the custom fields below in case you want to share site access.

Please backup your site before sharing access (FTP/SFTP is not needed for now, just WP access).

Mihai

March 6, 2024 at 9:04 pm #15381641

Mihai Apetrei
Supporter

Languages: English (English )

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

Hi and thank you for the credentials.

I can confirm that I was able to log in successfully.

I am spending more time on this and I will get back to you as soon as I have more feedback.

I will leave the ticket assigned to myself for the moment.

Kind regards,
Mihai

March 7, 2024 at 3:12 pm #15385200

claudioR-25

Thanks Mihai! In fact I tried to follow your past orientations and it seems that the issue is more tricky than we thought. Cheers cc

March 8, 2024 at 6:16 pm #15390445

claudioR-25

Hi Mihai , I think that I had an improvised solution to the issue that I put there in the English Header (and Portuguese). If you see some other solution let me know by email. I will consider this issue resolved. Cheers cc

March 8, 2024 at 6:17 pm #15390446

claudioR-25

The issue was not solved but I brought an alternative solution to it.

March 9, 2024 at 5:41 am #15391096

claudioR-25

So , lets return to Square One. I will wait for your solution.

l
thanks

cc