Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 15:00 9:00 – 15:00 9:00 – 15:00 9:00 – 15:00 9:00 – 15:00 - -
- - - - - - -

Supporter timezone: Asia/Yerevan (GMT+04:00)

This topic contains 13 replies, has 0 voices.

Last updated by Christopher Amirian 22 hours, 50 minutes ago.

Assisted by: Christopher Amirian.

Author Posts
October 19, 2024 at 6:19 am #16306741

martinW-38

Background of the issue:
I want to set up a different domain per language using WPML. I have added the following in WPML language settings: English domain is hidden link and German domain is hidden link. Both are test domains pointing to the same IP address. I am testing this functionality before going live.

Symptoms:
On the English domain, the language switch works fine, and I am redirected to the correct German domain. However, on the German domain, the language switch is not working, and I am unable to switch to the English domain.

Questions:
Why is the language switch not working on the German domain?
How can I ensure the language switch works correctly on both domains?

October 20, 2024 at 8:57 am #16308223

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

Would you please either use the HTTP for your website or make sure that the https version has a valid SSL certificate?

For now, I see that the HTTPS version throws privacy error on my browser and that might be the problem cause.

Thanks.

October 21, 2024 at 1:44 pm #16312639

martinW-38

Hi,
We enabled https for both domains, can you please check why on de domain why links on de version are going on en domain with /de slug added to en domain.

October 21, 2024 at 2:37 pm #16312938

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

I wanted to check but the links are protected by a password. That might effect WPML, please remove the password so I can check.

Also, I'd appreciate it if you could give me the URL/User/Pass of your WordPress dashboard after you make sure that you have a backup of your website.
It is absolutely important that you give us a guarantee that you have a backup so if something happens you will have a point of restore.

Make sure you set the next reply as private.

October 22, 2024 at 12:15 pm #16317267

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

Thank you for the login information. I checked and it seems to be working ok for me. I created a video of my experience:

hidden link

Thanks.

October 22, 2024 at 1:20 pm #16317614

martinW-38

Please look at my video response hidden link

the menu links on the english websites in all menus and all language switchers are correct.

the language switcher links in the German website are correct but all menu links in the German website are incorrect.

October 23, 2024 at 2:49 pm #16322453

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

Thank you for the video. I found out that he menu items are not translated yet and you use the the FSE theme block editor for the menus.

Please do as follows:

- Go to WordPress Dashboard> Translation Management.
- From the top filter select "Navigation Menu" and click the Filter button.
- You will see a list of menu items.
- Please select all and at the bottom send them for translations.
- A new tab will blink and you should go there and send all to the translation.
- After that please go to WordPress Dashboard > WPML > Translations
- You can take and translate them and it should work ok.

For more information:

https://wpml.org/documentation/getting-started-guide/translating-menus/

Thanks.

October 24, 2024 at 5:20 am #16324232

martinW-38

Hello,

this does not work. I think your solution is for sites with the old WordPress menu system. I translated a menu and it did not change at all in the German site (hidden link) this menu in the sidebar I translated. In the link you sent it is all about the old menu system but we have full site editing theme with the new standard menu system.

Also why is it needed to do this manually with this complicated WPML process that we never used in 8 years cause it is too complicated? The pages are all correct in the language slug setting and shuld be made automatically correct by WPML when switching to the domain setting.

October 24, 2024 at 5:32 am #16324241

martinW-38

can you also do one menu for example with your way? for me the menu i translated doesnt change at all in the German website.

October 24, 2024 at 9:28 am #16325251

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

Thank you. TRhe issue was that the Full Site Editing template were added manually for each language and you will need to manually go to the template that you used for German and change the links from there.

I created a video showing how to do so:

hidden link

Thanks.

October 24, 2024 at 10:58 am #16325654

martinW-38

this video didn't help as we know everything you showed.

what rather is needed: how to do the non manual way that you are talking about so that the links are correct after switching from language slugs to domains per language?

October 24, 2024 at 2:12 pm #16326874

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

You did not specify that in your question. You just asked that why the links are not translated and I mentioned why already in the video.

The normal way of translation is not possible with the way that you setup the FSE mode.

If you want to avoid using the manual method, you need to make sure that you test on a copy of the website first:

- IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website.
- Delete whatever template or pattern or anything yu have created manually in FSE mode and only use English templates.
- Go to WordPress Dashboard > WPML > Translation Management.
- Search for the template in the English language.
- Send it for translation
- Go to WordPress Dashboard > WPML > Translations
- Click the translate button and make sure that the translation is 100% complete (I already enabled the advanced translation editor which was not enabled before)

For more information:

https://wpml.org/documentation/getting-started-guide/translating-content-created-using-gutenberg-editor/translating-sites-that-use-full-site-editing

By the way the website pages are translated manually and they do not use the advanced translation editor in the first place. So clearly you did not use the advanced translation editor before.

Important: I should emphasise again that with the recurrent setup you need to first test this on a copy of the website and make sure it works ok.

Finally, the reason that the links work ok on the directory mode is because you MANUALLY added the translations in the DE templates for the links. WPML does not do anything for that case. So there is no difference between the separate domain mode or the directory mode like you assumed int he beginning of this ticket.

Hope I could explain the details and you understand why this is happening and what is the correct workflow.

Thanks.

November 5, 2024 at 1:31 pm #16366945

martinW-38

now i just used url replacement plugin. but we still have the problem that on german website there is no admin bar. how to fix that?

November 6, 2024 at 1:41 pm #16372051

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

If you mean the top bar that shows in the front end of the website when you are logged in, it shows ok on both domains.

I checked by logging in and change the language. please check the screenshot.

If you meant something else by Admin Bar, please clarify in more details with a screenshot so I can understand the issue.

Thanks.

Screenshot 2024-11-06 at 5.40.24 PM.png
November 12, 2024 at 10:49 am #16392200

martinW-38

it is not working on the live site. in this extremely bad and useless system here, good for the 19th century only, i cant post the login data now, otherwise it seems everybody would see it (not even this can be seen here). please use the same login data for the live site