[Resolved] No link between primary and secondary language on one page
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.
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.
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?
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.
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.
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.