Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
If you're experiencing an issue where the language switcher is hidden on your primary Elementor template page, and it seems like the link between the primary template and the secondary language template is missing, even though the secondary template exists when accessed directly via URL.
Solution:
We found that the issue may be due to the custom post type 'Evenemang' not having a post assigned to English. To resolve this, you should:
1. Create a test post in the secondary language to see if the language switcher appears.
2. If the language switcher appears, remove the test post.
3. Translate the existing post from the primary language to the secondary language.
This should restore the link between the primary page and the secondary language page, making the language switcher visible again.
If this solution doesn't look relevant to your issue, 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.

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by Andrey 1 year, 2 months ago.

Assisted by: Andrey.

Author Posts
November 15, 2023 at 11:59 am #14807785

Alexander

Hello! I have an Elementor template that is translated but it seems the link between the primary template and the secondary language template disappeared. When I'm on the primary template page, the language switcher is hidden, probably because it thinks that there is no translation. But when I enter the URL to the secondary template, it exists.

Is there a way to restore the link between the primary page and the secondary language page?

The primary URL is:
hafsten-dev.se/evenemang

The secondary language URL is:
hafsten-dev.se/en/evenemang

But on the primary URL there is no language switcher. And the language switcher on the secondary page redirects to the home page.

The language switcher works correctly on all other pages.

bayBVYEmy4.jpg
ecW9UwYguu.jpg
November 15, 2023 at 10:51 pm #14821121

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Thank you for contacting WPML support.

Have you tried to re-translate the page or test with a new template? Does the same result if you temporary turn off all non-WPML related plugins?

Please backup your database before making any changes.

November 16, 2023 at 1:04 pm #14826869

Alexander

How do I re-translate or create a new translation? The translate button links to the secondary language template. Do I just trash the secondary language template?

November 16, 2023 at 10:36 pm #14831017

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Let me first take a look at your website. I need to request temporary access (wp-admin and FTP) to your site – preferably to a test site where the problem has been replicated if possible – to be of better help. When you log in, you will find the needed fields below the comment area to leave your next reply. The information you will enter is private, meaning only you and I can see and access it.

November 17, 2023 at 2:06 pm #14863281

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Thank you for sharing the details. I found out what was the reason for this. You are using the custom post type Evenemang, which has no post assigned to Engish. So, I created a test post, and the language switcher appeared.

You can remove my test post and translate the post that you have in Swedish.

I hope this helps.

Evenemang-‹-Hafsten-Resort-—-WordPress.png
November 17, 2023 at 2:12 pm #14863435

Alexander

Ah, I understand! That's right, I hade no translated posts on the archive page and that's why the language switcher didn't show up. So, I have to make sure to always have at least one translated event post for the language switcher to work on the archive template.

Thanks!

November 17, 2023 at 2:26 pm #14863545

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Yes, you are correct! Have a nice weekend 🙂