This thread is resolved. Here is a description of the problem and solution.
Problem: The client experienced issues after changing the default language from English to Bulgarian on their website using the Enfold theme. This resulted in the Bulgarian language not showing up correctly and the English version losing styling, including the logo. Plus, the client was always redirected to the English version on the frontend.
Solution: 1. We recommended disabling the automatic redirection based on browser language to prevent potential SEO impacts and to fix the language display issue: - Navigate to WPML > Languages > Browser language redirect and select Disable browser language redirect.
2. We asked the client to clarify whether they wanted the same design across all languages or different designs for each language. We also pointed out that there is a global option for WPML in the theme options. - It's important to work on one language at a time to avoid confusion and ensure changes are applied correctly.
If the solution provided here does not resolve your issue or seems outdated, 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 the problem persists, 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.
Hello,
I tried changing the default language from EN to BG (Unfortunately, I first made the site in EN, as I'm a native EN speaker, then i slowllllyy did the translations to BG, but the site's primary market IS Bulgaria), and everything got super broken.
Somehow both the BG didn't work (it didn't show up as BG first), AND the EN got totally wrecked (even the logo was missing).
I'm using Enfold theme, and i tried follow the directions.. do you have any hints?
I've made an admin/pass for you guys before, not sure if it's something you can peak at, or if there are some better/more clear instructions?
THanks!
steve
Welcome to the WPML support forum. Let's start by meeting WPML's minimum requirements. I've noticed your website has a low PHP memory allocation (40M). The minimum requirement for WPML is 128M but we recommend 256M:
- Access your server via FTP and open wp-config.php (in your WordPress root directory).
- Insert those lines just before /* That's all, stop editing! Happy blogging. */
Hmm,
Okay this will take me some time to figure out as i have a lot of other work now, and it seems a bit complicated. I'll check it out in the next days and try to revert back to you if anything worked.
Cheers,
Steve
No problem, I will leave this ticket open and waiting for your feedback for 14 days. If you need more time simply reply back in the ticket to keep it active.
Okay,... i tried all of the above, but a lot of weird things happen. I THINK I also changed the php file to increase the memory.
Some things i see right away:
The logo, menu, header, etc... with some enfold defaults.
My menu in wordpress switches to bulgarian? is there a way to return it to english, but keep the main site language defaulted in BG? I'll attach screenshot.
A lot of the styling messes up, even though i made sure in both languages in enfold theme options to change it.
I changed a few things to fix already, and will keep trying, but so far it's not sooooo smooth 😀
Okay, i'm managing to bit-by-bit fix most things, buut, i'd still like to get the wordpress menu's back into english? Bulgarian is my 2nd lang, and i'm not so great at it. I'm managing... but.. it's a lot more work for me 😀
For example, some strange things - breadcrumbs is oddly popping up in the menu for EN now (it was never an option before), but NOT in BG (which is working okay), and i'm struggling to get rid of them, etc.
3. From what I read you managed to fix most thing but the menu/breadcrumbs is still an issue.
Could you please provide me with a temporary admin access (wp-admin and FTP) – preferably to a test site where the issue has been replicated – so I can further investigate. I will activate a private field for your next answer where you can provide that information safely (this field is only visible by you and the support team). Don't share your own admin account, create a new one that you will delete when we finish troubleshooting.
IMPORTANT: Before we proceed, please backup your site and database.
I won't make any important change that could affect your site. I just want to have a look at the theme options and templates to see why you're having this breadcrumbs issue.
1. For the first point, you activated automatic redirection based on browser language.
- Go to "WPML > Languages > Browser language redirect" and select "Disable browser language redirect". In general, redirection is not recommended because it could impact your SEO. When you activated it you should have gotten a pop-up warning about its effects.
2. For the second point, I'm not sure to understand what you're trying to accomplish:
- Do you want the same design on all languages or do you want a different design for each language?
- Please be aware that there is a "global" option dedicated to WPML in your theme options
- Also, please work on one language at the time, in the video below I opened both languages to compare them. If you want to make changes work on one language at the time
- Last I don't know where I can select the main menu styling. I went to General styling as you mentioned but couldn't find anything related to the menu.
First off, thanks so much for making the video, very cool 😉
1) Okay, working the redirect thing, that makes sense. I've disabled that now! That totally explains the reason! 😀 I tested this now, and it works, and stops redirecting (even, oddly, native bulgarians were having their browser switch languages, not sure if they had theirs in EN, but... weird).. anyway, that did the job - thanks much! 🙂
2) Ah, yes, i did have two tabs open, and both the EN and BG open at the same time, so i could see how mayyyybe that causes some cookie issues. Makes sense, i'll stop that.
3) For the menu issue, yes, I wanted BOTH the EN and the BG menu to be identical, and WITHOUT the horizontal header separation lines (like the EN is currently, and BOTH were also like the EN, before i did the language switch!)... somehow moving to BG messed up the BG header and added the lines, and i couldn't figure out how to remove the horizontal separator header lines in the BG... I just added some CSS in the "quick CSS" that, after the cache cleared (which i did), AND some time, it SEEMS to now get rid of that. I also couldn't see any difference in the styling between the two, which is why it was VERY confusing why this is happening (and still is, without the quick CSS code).
I actually think that you are also correct, and AFTER i clicked the "synch global" oddly, many issues corrected (like the body styling.. which.. shouldn't have happened, and didn't happen before the language switch.. but.. whatever... I really tried to synch both... but... whatever)
I'll check again tomorrow and update this ticket, buuut - i think we might be there!
Thanks so much for your help, it's been fantastic.
Thanks for your help! much appreciated. So many strange changes happened after switching the default lang. Most of the enfold styling was all reset, page layouts reset, headers, menus... blah!
I think i finally managed to change most of it back to how it was supposed to be, and your help/ideas was great.