Skip Navigation

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.

This topic contains 12 replies, has 2 voices.

Last updated by Nicolas V. 1 year ago.

Assisted by: Nicolas V..

Author Posts
March 25, 2024 at 11:20 am #15445943

stevenK-22

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

March 25, 2024 at 4:51 pm #15448393

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hello,

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. */

/* Memory Limit */
define( 'WP_MEMORY_LIMIT', '256M' );

More info: https://wpml.org/home/minimum-requirements/

---

Now regarding your issue, here are some pointers:
1. Make a full backup of your site

2. Make sure that all your content is translated from EN to BG: pages, posts but also templates etc..

3. Make sure to save your theme settings in all languages
As a reference, look at this documentation: https://wpml.org/documentation/theme-compatibility/enfold/#setting-theme-options-per-language
We explain how to get different settings per language. Here as you will be changing the default language, you need to have all your settings also saved in BG

4. Change the default language in "WPML > Languages > Site languages > Change default language"

5. Go to "Settings > Permalinks" to resave the permalink structure

Please let me know if it helps!

March 27, 2024 at 7:57 am #15453768

stevenK-22

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

March 27, 2024 at 1:33 pm #15455847

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hi 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.

April 1, 2024 at 1:23 pm #15469340

stevenK-22

Hi Nicolas,

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 😀

menu-changed-to-bg.png
mem-limit.png
April 1, 2024 at 1:30 pm #15469394

stevenK-22

So, when i try to over-ride wpml for changing my wordpress admin panel language, i see t his:

wp-admin-lang.png
April 1, 2024 at 2:00 pm #15469584

stevenK-22

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 😀

April 1, 2024 at 2:02 pm #15469618

stevenK-22

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.

April 1, 2024 at 2:03 pm #15469621

stevenK-22

these things.. grr. i'll keep working on trying to fix everything, but getting menu's back in EN will help me please.

breadcrumbs.png
April 1, 2024 at 11:13 pm #15470910

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hi Steven,

Let me reply point by point

1. PHP Memory
It looks good, you should be able to confirm that by going to "WPML > Support" and check the WordPress table on the page.

2. Dashboard language
You can change your admin language in your WordPress profile (it's probably set to "Site Default" right now)
Ref: https://wpml.org/documentation/getting-started-guide/language-setup/setting-the-wordpress-administration-language/

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.

April 8, 2024 at 1:07 pm #15494216

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hello,

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.

Video: hidden link

April 8, 2024 at 7:14 pm #15495922

stevenK-22

Hi Nicolas,

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.

April 8, 2024 at 8:12 pm #15496139

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hey,

Great, I'll keep this ticket open and waiting for your feedback then.

April 10, 2024 at 6:31 am #15502286

stevenK-22

Hi Nicolas,

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.

Cheers & keep up the nice work,
Steve