Dieses Thema ist gelöst. Hier finden Sie eine Beschreibung des Problems und der Lösung.
Problem:
You are experiencing unexpected behavior with languages and URL structure after installing WPML. Your existing German content is appearing under /en/ instead of the root URL, and there is no content under the root URL. You expected the German content to remain under / and only the translated English content to appear under /en/.
Solution:
The default language in WPML and WordPress is treated independently of the content's original language.
If content was initially created in German, it will always be translated from German into other languages. Changing the default language on websites with existing content is technically possible but not recommended due to potential unexpected issues.
Before changing the default language, we recommend creating a complete backup of your website, including the database.
After changing the default language, you must resave the permalink settings in WordPress.
Possible issues include problems with menus and navigation, where language menus may need to be recreated or adjusted, and menu entries might appear duplicated or disappear if the language logic becomes confused. Some themes store content specific to a language, which might cause widgets or theme settings to display incorrectly after a change. SEO and indexing might also be affected, as search engines have already indexed the old structure. Ranking losses might occur if proper redirection (301 redirects) is not set up. Additionally, certain plugin contents, such as ACF field groups and fields and taxonomies like global attributes in WooCommerce, should always be created in the default language. It might be better to switch the default language before starting translations. Set English as the default language at domain.com and German at domain.com/de/, but translations will still be done from German to English.
Languages can also be set to be invisible to website visitors: Hide languages on the frontend.
If this solution does not apply to your case, or if it seems outdated, we 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. If further assistance is needed, please open a new support ticket at WPML support forum.
Dies ist das technische Support-Forum für WPML – das mehrsprachige WordPress-Plugin.
Mitlesen können alle, doch nur WPML-Kunden können hier Fragen veröffentlichen. Das WPML-Team antwortet im Forum an 6 Tagen pro Woche, 22 Stunden am Tag.
Dieses Thema enthält 3 Antworten, hat 0 Stimmen.
Zuletzt aktualisiert von Vor 2 Wochen.
Assistiert von: Andreas W..