Problem: You are trying to translate text items in the Jetpack newsletter signup widget on your Spanish pages using WPML, but the translations are not applying, and the text still displays in English. Solution: We recommend adding the following XML code to WPML-> Settings-> Custom XML tab to ensure the Jetpack widget strings are translatable:
After adding this code, the strings should translate correctly. Please check your Spanish version to confirm.
If this solution does not resolve your issue or 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 the problem persists, please open a new support ticket.
The client installed WordPress in German (Sie) and then WPML, which switched to German (Du). In the meta tags, 'german-formal' appears, which the client believes is not good for SEO. They need to tag the website as being in German while using formal German with WPML.
Solution:
We recommend adding a function to the theme's child functions.php file to modify the HTML language attribute for German. Here is the code you should use:
add_filter('language_attributes', 'modify_language_attributes_for_german');
function modify_language_attributes_for_german($lang) {
// Check if the current language is German
$my_current_lang = apply_filters( 'wpml_current_language', NULL );
if ($my_current_lang === 'de') {
// Replace the language code for German
return 'lang="de-DE"';
}
return $lang; // Keep default language attributes for other languages
}
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.
The client is experiencing an issue where the 'saving' button keeps spinning indefinitely when trying to edit a product in a different language using WPML, despite the changes apparently being saved.
Solution:
We recommend the following steps:
1) Ensure you have the latest version of WPML String Translation. You may need to check for updates in the Plugins>>Add New>>Commercial tab.
3) Increase the MaxInputVars in your PHP settings to 10000. For guidance, refer to setting MaxInputVars.
If these steps do not resolve your issue, or if the solution seems outdated or irrelevant 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 the problem persists, please open a new support ticket.
Problema: Il cliente sta sviluppando un sito e desidera implementare un comportamento specifico con WPML per riconoscere la lingua del browser e cambiare automaticamente la lingua. Inoltre, vuole aggiungere un avviso che appare quando cambia la lingua manualmente, suggerendo di leggere nella lingua preferita del browser. Soluzione: Per implementare questa funzionalità è necessario del codice personalizzato. Purtroppo, non possiamo fornire supporto diretto per codice custom. Tuttavia, come punto di partenza, consigliamo di consultare la nostra pagina degli hook di WPML. In particolare, questo hook può essere utile per il tuo caso.
Se la soluzione proposta risulta non essere applicabile al tuo caso, o se è diventata obsoleta, ti invitiamo a verificare i problemi noti correlati, a controllare la versione della correzione permanente e a confermare che hai installato le ultime versioni dei temi e dei plugin. Se necessario, apri un nuovo ticket di supporto qui.
Problema: Stai cercando di ordinare le lingue nel backend di WPML nello stesso ordine del frontend. Soluzione: Purtroppo, non è possibile riordinare le lingue nel backend per riflettere l'ordine del frontend utilizzando le impostazioni di WPML. È necessario utilizzare del codice custom. Se questa soluzione non è applicabile o se il problema persiste, ti consigliamo di verificare i problemi noti e di assicurarti di avere installato le ultime versioni dei temi e dei plugin. Se il problema non è risolto, ti invitiamo a aprire un nuovo ticket di supporto.
Problem:
The client is unable to locate and translate the text above the search box in the Kadence modal search box on their website.
Solution:
We advised the client that the text they are trying to translate is added through the theme's functions.php file and is not set up for translation by default.
To make this text translatable, they should replace the existing function in
functions.php
with the following code:
function kt_add_form_title( $form ) {
$content = '<div class="search-modal-content"><h5>' . __('What are you looking for?', 'your-text-domain') . '</h5></div>';
return $content . $form;
}
After updating the function, they should navigate to WPML->Themes and Plugin Localization to scan the theme and then translate the text using WPML's String Translation. For more details on theme internationalization, visit WordPress Theme Internationalization.
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.
Problem: You are trying to resolve an issue where the updated PLN prices via BaseLinker's API are visible in the WooCommerce product backend but do not reflect on the frontend without manual updates. This behavior differs from EUR prices, which update immediately. Solution: Firstly, BaseLinker is not officially compatible with WPML, which might be causing the issue. We recommend contacting BaseLinker's authors to consider joining our GoGlobal program to work towards compatibility: https://wpml.org/documentation/support/go-global-program/ If PLN is your second currency and you are updating it, WPML synchronizes changes when the post is saved. You might need to trigger a re-save of the post using hooks like
save_post
or
update_post
. This approach may require additional custom coding. For custom coding, consider hiring a contractor from WPML: https://wpml.org/contractors/
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 issues persist, please open a new support ticket for further assistance.
Problem: You are experiencing a mismatch between Product ID and Variation ID in your ERP system due to WPML's handling of translations, which assigns unique IDs for translated products and their variations. Solution: We recommend using WPML’s built-in API or hooks to translate secondary language variation IDs back to the main language IDs before exporting to your ERP. For example, you can use the following code to fetch the main language ID for a product variation:
Please note that such customization falls outside the standard support scope. If you need help implementing this, consider hiring a professional developer from WPML Contractors.
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 issues persist, please open a new support ticket at WPML support forum.
The client is building a bilingual website using WPML, with custom post types created via CPT UI. The specific issue is that accessing posts in English under the /exhibitions slug leads to a 404 error.
Solution:
1) Disable slug translations in WPML>>Settings>>Slug translations, then save the changes. 2) Resave the permalink settings under Settings>>Permalinks. 3) Clear all types of caches. 4) If the issue persists, it might be due to a compatibility conflict with the customized theme. We recommend testing with the default WordPress theme to check if the issue still occurs. 5) Ensure you are using the latest version of WPML String Translation and clear WPML caches from WPML>>Support>>Troubleshooting. 6) Resave the settings under WPML>>Languages>>Language URL format and Settings>>Permalinks again.
If these steps do not resolve the issue or if the solution 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 open a new support ticket at WPML support forum.
Problem: Vous essayez de traduire le logo et le fil d'ariane de français vers anglais. L'image du logo est affichée via un code personnalisé. Solution: 1. Pour le logo, nous vous recommandons d'utiliser notre hook wpml_object_id pour obtenir l'ID de l'image dans la langue secondaire. Voici un exemple pour obtenir l'ID de l'image traduite en anglais :
Si cette solution ne s'applique pas à votre cas ou semble obsolète, nous vous recommandons de vérifier les problèmes connus sur https://wpml.org/known-issues/, de vérifier la version du correctif permanent et de confirmer que vous avez installé les dernières versions des thèmes et plugins. Si le problème persiste, n'hésitez pas à ouvrir un nouveau ticket de support sur notre forum de support.