I’m having an issue with WPML on one specific page — the homepage. All other translated pages on the website work correctly.
Problem:
The default language is English.
The homepage also has a Danish translation.
If I manually enter the Danish URL (domain.com/da/) everything works correctly.
However, the WPML language switcher in the main menu does not work properly on the homepage only.
What happens:
When I hover over the English flag/menu item on the homepage, the Danish option does not appear.
Because of this, all homepage-related menu links in Danish point to the English homepage instead of the Danish one.
Other pages switch languages normally.
Things I already tried:
I deleted the homepage completely and created a new one.
I recreated the translation.
The issue still reappears only on the homepage.
It seems like WPML is not correctly linking the translated homepage internally, even though the translated page itself exists and works when accessed directly via URL.
You can see two pages on the screenshot.
Could you please advise what could cause this and how to properly reconnect the homepage translations?
Pages look fine and connection is there ... but the the issue is still there. I can not switch between EN and DA on my front page. There is some disconnect between them
Thank you for your detailed explanation of the issue. It seems that the disconnect between the English and Danish homepage translations could be related to the post status, the menu translation, and maybe even the language URL configuration for the site.
Please check the following:
1. Go to **WPML -> WP Menus Sync** and ensure that the Danish translation of the homepage is correctly linked in the menu.
2. Verify the language URL format under **WPML -> Languages** to ensure it is set up correctly.
3. After setting up the URL format, please resave the permalinks by going to **Settings -> Permalinks** and clicking "Save Changes."
4. Ensure that the Danish translation of the homepage is published and not in draft status. You can check this in the WPML translation management section.
If everything appears to be set up correctly and the issue persists, please let me know, and we can take further investigation.
I did all the suggested troubleshooting steps, but the issue still remains.
I temporarily opened the website publicly so you can reproduce the problem yourself.
Please test language switching on these two pages:
Homepage: hidden link
Regular page (works correctly): hidden link
Issue:
On all regular pages, switching between EN and DA works correctly.
On the homepage only, the WPML language switcher in the menu does not work properly.
Additional details:
I use 2 separate menus:
one menu specifically for the homepage
another menu for all other pages
However, this does not appear to be the cause. I already tested using only one menu everywhere and the problem still remained.
I also:
deleted the original homepage completely
created a brand new homepage
retranslated it
But the issue still appears only on the homepage.
One additional thing I noticed:
If I open the homepage in an incognito browser window, before the page fully finishes loading, the Danish flag briefly appears in the menu. If I move my cursor quickly enough, I can even hover it - but then it disappears a moment later after the page finishes loading.
This makes me think something loaded via JavaScript or theme/menu rendering is overriding or removing the WPML language switcher specifically on the homepage.
Could you please help me identify what is causing this and how to fix it?
Thank you for your patience. I'd be happy to take a closer look at this issue.
To investigate further, I would like to request temporary access (wp-admin and FTP) to your website. You will find the necessary fields below the comment section when you log in to leave your next reply. The information you provide will be private, meaning only you and I will be able to see and access it.
**IMPORTANT**: Please ensure you create a backup of your website and database before granting access.
If you don't see the "wp-admin / FTP" fields, your login credentials for the post and website will be set to "PUBLIC." Please do not publish this information unless you see the required fields.
I may need to install a plugin called "All In One WP Migration" to create a copy of the website for a more thorough investigation.
Additionally, if possible, I would greatly appreciate it if you could provide a staging site on your server for this purpose. If you have any questions about creating a staging site, please contact your hosting provider. Ensure that WPML is also registered on this staging site at https://wpml.org/de/account/websites/.
If you are unable to provide a copy of the website for testing, please let me know in this ticket.
For your reference, the private reply form looks like this: hidden link
When replying again, please click "I still need assistance."
You can also refer to this video for guidance: hidden link
Please note that we are required to request this information individually on each ticket and cannot access any login information not specifically provided in the private reply form for this ticket.
I would suggest consulting the Avada Support Team, as this issue is not WPML-related. You can recreate the same issue if you add a submenu item to one of your menu items.
A workaround for the WPML Language Switcher would be using the list view instead of a dropdown.