Problem: You are trying to translate anchor points in links using WPML, but find that while the main part of the URL translates correctly, the anchor part does not. For example, translating https://www.mysite.org/link/#anchor to https://www.mysite.org/es/link-es/#anchor-translated does not work for the anchor segment. Solution: We recommend adding a custom XML configuration to your WPML settings to enable translation of the anchor parts of links. Here is the XML configuration you should add:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<wpml-config>
<elementor-widgets>
<widget name="text-editor">
<fields>
<field>editor</field>
</fields>
</widget>
<widget name="button">
<fields>
<field>text</field>
<field>link>url</field>
</fields>
</widget>
<widget name="menu-anchor">
<fields>
<field>anchor</field>
</fields>
</widget>
</elementor-widgets>
</wpml-config>
After adding this configuration, use the Advanced Translation Editor to search for "http" and translate the link as needed.
Please note that this solution might be outdated or not applicable to your specific case. If this solution does not resolve your issue, we highly recommend checking related 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.
Problem: The client is using ACF multilingual with WPML, and they encountered an issue where an image URL in a product category displays correctly in English, but when switching languages, the array containing the image URL becomes just a category ID in the translations. Solution: We recommended verifying the method used to call the field, suggesting the use of the approach detailed in the ACF documentation on image fields: https://www.advancedcustomfields.com/resources/image/#customized-display-array. Additionally, we provided a test site for the client to replicate the issue and further investigate the behavior of the image fields in a controlled environment. If the problem persists, we advised the client to adjust their code to check if the image field returns an ID and, if so, convert it to a URL using
1
wp_get_attachment_url
.
Please note that this solution might be outdated or not applicable to your specific case. 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 the issue persists, please open a new support ticket at WPML support forum for further assistance.
Problem: You are using WPML and ACF on your website and encountering an issue where
1
get_fields()
in your PHP file returns FALSE when trying to retrieve fields set across different languages. Solution: 1. If the issue occurs in the default language, disable WPML temporarily to check if the problem persists without it. 2. If the problem is in a secondary language, ensure that the pages are translated. Use the
1
wpml_object_id
hook to obtain the correct post ID for the translated post, which should allow you to retrieve the fields correctly. For more details on using this hook, visit https://wpml.org/wpml-hook/wpml_object_id/.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your specific case, we recommend opening a new support ticket. Additionally, 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. For further assistance, please contact us through our support forum.
Problem: The client is experiencing an issue with WPML Media Translation where the 'Save media translation' button remains inactive, and despite adding Name, Caption, and Alt text to a different file, the translated image does not appear, but the English image does. Solution: We recommend using the
function to ensure that the media ID is correctly translated, which should resolve the issue with the inactive button and the incorrect display of images. Here is a step-by-step guide: 1. Retrieve the original media ID and URL. 2. Use the
1
apply_filters
function to get the translated media ID. 3. If the original media ID does not match the translated media ID, update the media URL and ID to the translated ones. 4. Verify that the translated media appears correctly in place of the English image.
If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, 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 the problem persists, please open a new support ticket at WPML support forum for further assistance.
Problem: The client developed custom SiteOrigin widgets on a custom theme and configured the wpml-config.xml to translate widget content. However, the custom widget content is not translating, even though the page content is. Solution: We recommend updating your wpml-config.xml with the following XML code to make your widget compatible with WPML:
Please note that this is considered a custom code request and is outside of our support scope. We did our best to show how it is done for one widget but we will not be able to provide code for other widgets. You are welcome to use the resources provided in the reply to find the correct code.
If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at WPML 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.
Problem: Sie möchten, dass die Sprachumschaltung auf mobilen Geräten (Handy/Ipad) linksbündig statt in der Mitte angezeigt wird. Solution: Um die Sprachumschaltung auf mobilen Geräten linksbündig anzuzeigen, fügen Sie bitte folgenden CSS-Code zu Ihrer Website hinzu:
Falls Sie eine durchgehend linksbündige Ausrichtung wünschen, ersetzen Sie den obigen Code durch:
1
.wpml-ls-item {<br /> text-align: left !important;<br />}
Wenn Abstände auftreten, weil die Sprachumschalter-Elemente Unterpunkte Ihres Menüs sind, empfehlen wir, verschiedene CSS-Codes zu testen oder den Entwickler Ihres Themes zu kontaktieren. Sie können auch die verschiedenen Optionen des Sprachumschalters unter WPML > Sprachen ausprobieren.
Falls diese Lösung veraltet ist oder nicht auf Ihr Problem zutrifft, empfehlen wir, einen neuen Support-Ticket zu öffnen. Überprüfen Sie auch die bekannten Probleme und stellen Sie sicher, dass Sie die neuesten Versionen Ihrer Themes und Plugins installiert haben. Für weitere Unterstützung besuchen Sie bitte unser Support-Forum.
Problem: You are trying to add a menu and widgets manually to your website using WPML, but you encounter issues where the source text for the website name, menu, and widgets is not displayed in translation management. Additionally, when you add the menu and widgets manually, it results in duplicated menu and widgets on the original website, and they are not applied on the translated website. Solution: We recommend accessing the String Translation section and deleting any instances of the domain name related to the menu and widgets, such as:
1
admin_texts_ql_services_permalink
1
admin_texts_ql_services_permalink
After this, reload the page to allow WPML to rescan the frontend. The deleted strings should reappear. You should then verify both strings and use the "Change the language of selected strings" option to correct the language settings. Please check if the issue is resolved after performing these steps.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, 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 the problem persists, please do not hesitate to open a new support ticket at WPML support forum for further assistance.
Problem: After reactivating the WPML plugin, the client experienced an issue with the layout of the language switcher button. It was not aligned correctly with the phone number on the website header. Solution: We recommended adding custom CSS to adjust the layout. Here is the CSS code we provided:
We advised the client to add this code via WP > Appearance > Customize > Additional CSS and then clear the browser cache to see the changes.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, 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.
Problem: If you're experiencing an issue where the menu bar scrolls over the text on your French pages, it might be due to missing or conflicting custom CSS. Solution: We recommend adding the following custom CSS code to resolve this issue. You can do this by navigating to WP > Appearance > Customize > Additional CSS in your WordPress dashboard:
1
2
3
header#masthead {
background: #ffffff;
}
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 you still face issues, please do not hesitate to open a new support ticket at WPML support forum.
Problem: Sie möchten in Ihrer wpml-config.xml-Datei eines individuellen Plugins Metadaten zum Kopieren registrieren, wobei die genaue Bezeichnung des Feldes dynamisch ist. Der Code
Weitere Informationen und Beispiele finden Sie in unserer Dokumentation und diesem Code-Snippet. Falls Sie Unterstützung benötigen, empfehlen wir die Zusammenarbeit mit einem unserer zertifizierten WPML-Partner: https://wpml.org/contractors/.
Bitte beachten Sie, dass diese Lösung möglicherweise veraltet oder nicht auf Ihren Fall zutreffend ist. Wir empfehlen, die bekannten Probleme zu überprüfen, die Version der dauerhaften Lösung zu bestätigen und sicherzustellen, dass Sie die neuesten Versionen von Themes und Plugins installiert haben. Falls weiterhin Probleme auftreten, zögern Sie nicht, ein neues Support-Ticket zu eröffnen.
Problem: Sie möchten das Individuell-Feld "wpml_language" in Ihrer function.php so anpassen, dass es basierend auf dem Lieferland und nicht auf der beim Checkout gewählten Sprache gesetzt wird. Solution: Wir empfehlen, keine Anpassungen vorzunehmen, die die Funktionsweise von WPML beeinflussen könnten. Sollten Sie dennoch Änderungen vornehmen, übernehmen wir keine Verantwortung dafür. Hier ist ein Code-Snippet, das Ihnen helfen könnte:
Falls diese Lösung veraltet ist oder nicht auf Ihren Fall zutrifft, empfehlen wir Ihnen, ein neues Support-Ticket zu eröffnen. Überprüfen Sie auch die bekannten Probleme und stellen Sie sicher, dass Sie die neuesten Versionen Ihrer Themes und Plugins installiert haben.
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.