Home›Support›English Support›[Resolved] Changing default language from EN(US) to EN(CA) makes logo disappear from theme
[Resolved] Changing default language from EN(US) to EN(CA) makes logo disappear from theme
This thread is resolved. Here is a description of the problem and solution.
Problem: The client was experiencing an issue where the logo image added in the Hello Elementor theme kept disappearing from the Site Identity section in Appearance > Customize. The problem persisted even after uploading the image multiple times and seemed to occur when editing the header or footer with Elementor, or after changing the default language from English US to English Canada. Additionally, after attempting to remove all content related to English (US) from the website, the client still saw Types and Themes in the WPML languages section, which could not be deleted.
Solution: We recommended checking if the issue was related to caching by clearing the site, server, and browser caches. We also suggested disabling the Lazyloading feature if the Smush plugin was in use. To address the issue of the logo disappearance, we found that Elementor Styles kit was being duplicated after changing the default language in WPML. The solution was to remove both templates and create a new one in the new main language.
For the issue of the English US language's content still being detected, we used a database plugin to examine the database and found that posts, Taxonomies, Types, and Themes originally created in English were still present. We resolved this by: 1. Installing the PHPMyAdmin plugin on the site. 2. Accessing the database and navigating to the
wp_icl_translations
table. 3. Executing the SQL Query
SELECT * FROM `wp_icl_translations` WHERE `language_code`='en';
to list the data available in English. 4. Selecting all the data and removing them from the database since the English language was deactivated.
If this solution does not seem relevant to your issue, please do not hesitate to 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.
I am trying to: find why logo image added in Hello Elementor theme always keep disappearing
I expected to see: the logo image in Appearance > Customize > Site Identity
Instead, I got: no image even if I uploaded a new image at least five times. It stays when I update it but then it disappears again after some time. I'm building this website with Elementor and it seems to be disappearing when I edit the header or footer, but I can't be sure. I suspect that changing default language from English US to English Canada causes the issue.
Hello There,
Thanks for reaching out to WPML Support.
I understand the issue you're having. To address it efficiently, could you please provide answers to the following question in your next response?
- Is the logo being removed only in the secondary language, or does this issue occur even when you're using the default language?
- If the issue occurs randomly, caching might be involved here. Have you tried clearing the caches from your site, server(if any caching is enabled), and browser?
- Will it be possible to share the password to access your site? I enabled a private field for you in case you don't want to share the password publicly.
Looking forward to your response and am ready to assist you further with this matter.
- Is the logo being removed only in the secondary language, or does this issue occur even when you're using the default language?
This issue occur even when we use the default language English (Canada).
- If the issue occurs randomly, caching might be involved here. Have you tried clearing the caches from your site, server(if any caching is enabled), and browser?
It does not seem random. There is not caching plugin installed on the website so far. I will clear the server cache to see if it helps.
- Will it be possible to share the password to access your site? I enabled a private field for you in case you don't want to share the password publicly.
To access the website, please use [Private]. Please make sure this info is private. I will only provide website credentials after if really needed.
Moreover, I looked at the Chrome DevTools Console and there is no error showing there related to this. WP debug is also activated and nothing shows in the debug.log file either.
After reviewing your site, I observed that the Logo is correctly displayed in the header in the default language. This consistency was also noted on other pages, where the Logo appears properly.
However, during a code inspection, I noticed that the lazyload and cache classes are linked with the Logo's markup. Please check this screenshot for a better understanding: hidden link
The lazy loading can sometimes lead to images not appearing properly on a webpage. Since you're using the Smush plugin, will you please disable the Lazyloading feature and check if the issue persists or not?
If the problem persists, please try deactivating the WPML plugin and then see if the issue remains. In this way, we will be able to isolate what mainly causing the issue.
Please let me know the update. I will be happy to help if you need further assistance in this matter.
I was able to figure out why the logo kept disappearing. It was caused by Elementor Styles kit being duplicated after changing the default language in WPML. Once I removed both templates and redid a new one in my new main language, the issue resolved.
However, I still have an issue with removed English US language's content still being detected in wpml languages (see image) even after I clicked on Delete Content many times.
How do I get rid of those values ? I didn't add any custom post types to this website so I'm not sure why I see 8 types there.
What about the 1 theme value ?
Please provide a way to get rid of the deleted language's content.
Hi There,
I hope you're doing well. Sorry for the delay in responding due to the weekend.
It's great to hear that the issue with the logo has been resolved, and I'd like to extend a special thanks for sharing the solution with us. 🙂
Regarding the issue you're having with English content: Would you please try the following and check if that helps to solve the issue?
- Please go to "WPML > Support > Troubleshooting"
- Click on the Buttons marked in this screenshot: hidden link
- Once done, try to remove the deactivated language contents again from "WPML > Languages".
If the issue persists even after that, a closer inspection will be required to understand the root cause of the issue.
I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated.
You will find the needed fields 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.
Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.
IMPORTANT
-Please backup 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
Hello There,
Thank you for sharing the access information.
I installed a database plugin to examine the database. While checking, I found that approximately 13 posts, including Taxonomies, Types, and Themes, originally created in English, still exist in the Database. As soon as I delete the data from there, the issue immediately gets resolved.
Here's what I've done to fix the issue.
- Installed the PHPMYAdmin plugin on the site.
- Accessed the database using that tool and went to "wp_icl_translations" table
- Execute the following SQL Query which listed the data that were available in English.
SELECT * FROM `wp_icl_translations` WHERE `language_code`='en';
- Selected all the data and removed them from the database as the English language is deactivated.
Please let me know if that helps or if you need further assistance in this matter. I will be happy to help.
It solved the issue indeed. Now can you make this thread private as I share a password to access website on my comment from NOVEMBER 15, 2023 AT 3:07 PM ?
Glad to hear that the issue is solved now. I would like to inform you that the password you shared is already set to private. However, if you wish to make the entire thread private, kindly mark this thread as resolved and inform me. I will then forward your request to the appropriate team to ensure the privacy of this entire thread.
Feel free to reach us if you ever need any assistance with our plugins. We will be happy to help.