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.
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 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.
Problem: The client needs to modify the language URL format to include country codes like /ca/fr/ and /us/en/ in their WordPress site using WPML. They attempted to modify the
REQUEST_URI
in an init hook but were unable to change the permalink structure as desired. Solution: We informed the client that achieving this URL format with WPML directly is not possible without additional custom coding. Since this requires complex code and might cause side effects, we recommended hiring a WPML contractor for professional assistance. You can find a suitable contractor by visiting https://wpml.org/contractors/.
Please note that this solution might be outdated or not applicable to your specific case. If this does not resolve your issue, 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 need assistance, please open a new support ticket at WPML support forum.
Problem: Der Kunde versuchte, die niederländische Version seiner Website automatisch zu übersetzen, stieß jedoch auf Probleme, da die Seite leer blieb und nicht übersetzt wurde. Zudem gab es Schwierigkeiten bei der Übersetzung des LayerSliders und eines externen Buchungswidgets. Solution: 1. Wir empfahlen, das WordPress-Speicherlimit zu erhöhen, da das aktuelle Limit von 40M zu niedrig war. Dies kann durch Hinzufügen des folgenden Codes in der
Bitte beachten Sie, dass diese Lösungen möglicherweise veraltet oder nicht auf Ihr spezifisches Problem anwendbar sind. Wir empfehlen, die Seite mit bekannten Problemen (https://wpml.org/known-issues/) zu überprüfen, die Version der dauerhaften Lösung zu verifizieren und sicherzustellen, dass Sie die neuesten Versionen von Themes und Plugins installiert haben. Sollten die Probleme weiterhin bestehen, eröffnen Sie bitte ein neues Support-Ticket im WPML-Support-Forum.
Problem: You are developing a site and need to add a custom currency or set different prices for different languages using the same currency. You found that the multi-currency plugin allows adding currencies like Solana or Bitcoin, and you are wondering if you can add your own custom currency to set different prices per currency. Solution: 1) Adding a custom currency is not a feature provided by WPML but by WooCommerce. You should add your custom currency to WooCommerce, and then you can use it in WPML/WCML. We recommend checking the WooCommerce developer documentation on how to add a custom currency symbol here: https://woocommerce.com/document/add-a-custom-currency-symbol/ 2) It is not possible to set different prices for different languages using the same currency in WPML. Each language version of a product is a translation of another, so the content and prices should remain consistent unless they are created as separate products.
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.
Problem: The client has a large multilingual site with posts in English and Spanish, consolidated from four older sites. They are facing issues with hardcoded links in Spanish content not correctly reflecting the new site structure. Solution: We recommend updating the hardcoded links via the database (DB). This approach will not affect the page content as these links are embedded in post meta. Therefore, updating them directly in the DB or by re-translating the pages and the links within them is necessary. For dynamic links, such as menu items, these should adjust automatically when you modify your WPML language settings.
If this solution does not resolve your issue or seems outdated, please check the related known issues and confirm that you have installed the latest versions of themes and plugins. If the problem persists, we highly recommend opening a new support ticket here.
Problem: The client was unable to display translated regions, countries, and ports on their website using the Elementor Custom HTML widget. Solution: We recommended using the wpml_object_id filter hook to fetch translated post IDs in the current language. Detailed guidance on this hook is available at WPML documentation. For Ajax-loaded data, we advised passing the current language to the callback function. Instructions for handling Ajax requests can be found at WPML documentation. Additionally, we provided custom code examples to localize scripts and modify Ajax requests to ensure the correct language is used:
// Get the current WPML language
$current_language = apply_filters( 'wpml_current_language', null );
// Localize the script with the current language
wp_localize_script( 'common-js', 'wpmlData', array(
'currentLanguage' => $current_language,
));
lang: wpmlData.currentLanguage
These changes were implemented on the client's staging site. If further customization is needed, we recommended contacting a certified WPML contractor from this list.
Please note that the solution provided 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.