[Resolved] Logo image does not adapt to English site
This thread is resolved. Here is a description of the problem and solution.
Problem: The client's multilingual website was not displaying the correct logo for the English version when using the X-Theme.
Solution: 1. We identified the media ID of the current logo image (ID: 19663). 2. We navigated to WPML > String Translation and used the 'Translate texts in admin screens' option at the bottom of the page. 3. We searched for the logo's ID number, checked the box on the left, and selected "Add to String Translation". 4. Once the string was added to the list, we clicked the "+" icon to add a translation for the English language. 5. We entered the media ID of the English logo (ID: 16028) and appended ":full" to specify the image size as required by the theme.
If you're experiencing a similar issue with your logo not switching for different languages, we recommend following these steps to add the correct logo to the String Translation and specify the appropriate media ID for each language.
Please note that this solution might be irrelevant if it's outdated or not applicable to your case. If the issue persists, 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.
So, if I understand correctly, you want to use a different logo image for EN, right?
1. If yes, can you please let me know where can I find the EN version of the logo?
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.
- 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.
I was able to replace the logo for you but it took me a while to figure out how things were built in order to be able to find out the proper procedure to follow.
You will see that it is working in this EN translation here: hidden link
Oh, no... do you remember what you did?
We are having parallel works because of speed issues and those were worked on in a separate staging environment which will later have to overwrite stage2... sorry, I thought you would just give pointers, or I would have alerted you.
Hopefully you can provide the path you took, or I can let you know when stage is in its latest version to repeat the update?
So, the ID of your current logo image is this: 19663
Every media added to a WordPress site gets a number id after it has been uploaded to the site.
You can also see that string here (hidden link) and in the screenshot I'm attaching below.
So I went here (hidden link), searched for that id number, checked the box on the left and selected "Add to String Translation" - you can get to this area by going to WPML > String Translation > and then, there's a URL at the bottom of the page called "Text auf Admin-Bildschirmen übersetzen".
After I did this, the string was added to the list inside WPML > String Translation (as you can see in the screenshot I attached below) and I was able to translate it.
By translating it, I mean that I clicked the "+" icon and then I used the media ID of the other logo that we want to use for English (that other ID is: 16028).
I also added ":full" at the end because that's how your theme works and it needs you to specify that information so that the theme knows the size it will use for the logo image.
I am attaching one more screenshot below so that you can see exactly what I added in the translation field 🙂