Home›Support›English Support›[Resolved] Homepage header and images missing after enabling “Use directory for default language (/de/)” ...
[Resolved] Homepage header and images missing after enabling “Use directory for default language (/de/)” ...
This thread is resolved. Here is a description of the problem and solution.
Problem: After switching the WPML setup to use a directory for the default language (/de/), the homepage content partially disappeared. The header, main navigation menu, and all Elementor images and sections are missing on the German homepage, affecting the SEO as Google now sees /de/ as the canonical homepage. Solution: The issue might have occurred due to the site's rewrite base changing when the default language directory was updated, causing some URLs, especially those in Elementor's internal data, to retain the old path. To fix this, you can use the following command if your site runs on WordPress with WP-CLI installed:
If WP-CLI is not available, consider using a plugin like Better Search Replace. Always ensure to back up your site fully before running these commands.
If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. We also highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum at WPML Support Forum.
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.
Background of the issue:
I switched my WPML setup to use a directory for the default language (/de/).
Symptoms:
After enabling 'Use directory for default language (/de/)', the homepage content partially disappeared. The header and main navigation menu are missing on the German homepage (hidden link). All hero images, sliders, and background images from Elementor sections are missing. The page structure loads, but the layout is broken. The English version (/en/) still works perfectly. From an SEO perspective, Google now sees /de/ as the canonical homepage, but the index quality and preview are impacted.
Questions:
How can I restore the header and main navigation menu on the German homepage?
What steps should I take to ensure all images and templates appear correctly on the German homepage?
How can I address the SEO impact caused by the missing elements on the German homepage?
I'll explain the situation in more detail. After changing the settings so that the language identifier (/de/ /en/) is present in the URL for all languages, the following happened:
The homepage in both languages no longer has a header. The header is present on the other pages.
hidden link hidden link
The other problem is that several images are no longer displayed. hidden link
Sorry, but what kind of nonsense is this!
Do I look like someone who codes in PHP? And the important question is: why do I even have to do this?
On the other WordPress website, everything worked perfectly without me having to make any changes.
So please explain to me what’s going wrong here!
I don’t want to create any more pointless pages just because of SEO.
The URLs are being redirected correctly (/de/ and /en/), but the header and images have disappeared from the entire website — not only on the main page, but also on the subpages there are problems with the images.
The template settings were set to Full Width Elementor instead of Root.
I checked on the other website, and there it’s configured correctly — now everything is visible again.
They’re talking nonsense… from a support team, I expect a bit more professionalism and knowledge.
The header and the slider are back again.
However, there are still problems with the images!
I’ve noticed that when I manually re-add the images in Elementor, everything works fine again — but honestly, I have no desire to go through the entire site and re-insert every single image manually.
So please explain to me why the images disappeared after the language switch.
The images are almost all marked like this in the Elementor editor, even though they’re correctly assigned.
I have to open each image and close it again — then it becomes visible.
Please explain to me why this happened after changing the language URLs.
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+01:00)
Can you provide me with FTP credentials so I could set the root page as per our documentation, to see if this is the cause?
Because when I inspect the source code I can see that all images have /de added for some reason (which leads to 404 for images), it could be compatibility or configuration issue.
That being said, do you have a staging or testing website perhaps? If so, we could make some additional tests there such as disabling plugins to find a possible source of conflict.