Problem: You are trying to adjust the language display on your website for mobile devices and want to change how the language options appear, specifically not in a dropdown menu. Solution: Take kindly note, that this is custom work and our supporters are not obligated to provide solutions in such cases. We have set the menu language switcher to not display as a dropdown on mobile devices by using CSS media queries. 1. We added the following CSS:
You can save this CSS at WPML > Languages > Language Switcher Options > Additional CSS. 2. To display a custom language switcher instead, you can integrate it via PHP or Shortcode. Enable and customize it at WPML > Languages > Custom Language Switcher. For guidance, refer to the following documentation:
If this solution does not resolve your issue or seems outdated, please check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. If needed, do not hesitate to open a new support ticket at WPML support forum.
Problem: The client is experiencing 404 errors when clicking on video titles on the Spanish page of their website. They are unsure if they need to adjust WPML settings or rewrite rules to resolve this issue. Solution: We reviewed the provided code and links. Here are the steps we recommend: 1. In your rewrite rules, use a string directly for the slug, like this:
2. Translate the slug directly in WPML → Settings to avoid conditional code based on the language. This simplifies your setup and ensures consistency across languages. 3. Create and add custom rewrite rules as you are modifying the default behavior. Detailed instructions on how to do this can be found here:
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 at WPML support forum.
Problem: If you're experiencing issues where changing a product's status to 'draft' in the default language (Italian) does not automatically sync the status to additional languages (English/Chinese) on your multilingual site, we have a solution for you. Solution: We recommend adding a custom code snippet to your theme's functions.php file to synchronize the publish status across all languages. Here's how you can do it:
function sync_publish_status_across_languages($post_id) {
// Check if this is a valid post type (product) and that the post is not being autosaved
if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) return;
if ('product' != get_post_type($post_id)) return; // Check for WooCommerce product post type
// Get the current post status
$post_status = get_post_status($post_id);
// Get the default language
$default_language = apply_filters('wpml_default_language', null);
// Get all translations of the post in different languages
$translations = apply_filters('wpml_get_element_translations', null, $post_id, 'product'); // Updated for products
foreach ($translations as $lang => $translation) {
// Skip the default language post (we don't want to update it)
if ($lang === $default_language) continue;
// Get the translation post ID
$translation_post_id = $translation->element_id;
// Update the publish status of the translated post
wp_update_post(array(
'ID' => $translation_post_id,
'post_status' => $post_status
));
}
}
add_action('save_post', 'sync_publish_status_across_languages');
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: The client is trying to implement CSS code for the theme 'Twenty Seventeen' to adjust the margin between the headline and the text on the homepage in the mobile version. However, the additional CSS is not applied to the translated version of the website, causing layout issues on mobile devices. Solution: First, we recommend adding your CSS modifications under the WPML>>Languages page in the Language Switcher Options section by clicking on the Additional CSS link. Ensure you perform a site backup before making these changes. For more details, refer to the following documentation links:
Second, the issue might persist because the CSS targets a specific page ID which changes in translated versions. For instance, the original page might have an ID of '9', while its translated counterpart could have '9595'. Adjust the CSS to target the correct page ID for each language version.
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, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please open a new support ticket.
Problem: The client reported issues with incomplete or missing translations on their website using WPML. Solution: We recommended adding a custom XML configuration to ensure all elements are translatable. The client can access this setting by navigating to the WPML settings in their WordPress admin panel. After updating the XML configuration, the client should resave the primary language page to trigger the automatic translation process. For the footer translations, we enabled the translation option, and the client needs to complete the translation manually.
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: Die Funktion zur Anzeige von Herstellerangaben auf einer Produktseite wird nicht korrekt ins Englische übersetzt, obwohl die Grundversion in Deutsch verfasst ist. Der String ist vorhanden, aber die Sprachen sind vertauscht. Solution: Wir empfehlen, die
getText()
Funktion mit der korrekten Textdomain zu implementieren, da diese in Ihrer aktuellen Implementierung fehlt. Zusätzlich können Sie die Funktion wpml_translate_single_string verwenden, um die Übersetzung zu verwalten.
Falls diese Lösung nicht relevant sein sollte, weil sie veraltet ist oder nicht auf Ihr Problem zutrifft, empfehlen wir Ihnen, ein neues Support-Ticket zu eröffnen. Wir empfehlen auch, die Seite mit bekannten Problemen (https://wpml.org/known-issues/) zu überprüfen, die Version der dauerhaften Lösung zu verifizieren und zu bestätigen, dass Sie die neuesten Versionen von Themes und Plugins installiert haben. Für weitere Unterstützung besuchen Sie bitte unser Support-Forum unter WPML Support-Forum.
Проблема: Клиент столкнулся с проблемой, где функция icl_get_string_id всегда возвращает 0 после первого вызова, что приводит к повторному добавлению перевода через API, если строка уже зарегистрирована. Решение: Мы рекомендуем использовать доступные хуки WPML для регистрации строк и переводов, чтобы избежать подобных проблем. Для регистрации строки следует использовать хук
Если данное решение окажется неактуальным или не подходит под ваш случай, мы настоятельно рекомендуем проверить связанные известные проблемы по ссылке https://wpml.org/known-issues/, убедиться в версии исправления и подтвердить, что у вас установлены последние версии тем и плагинов. Если проблема сохраняется, пожалуйста, откройте новый тикет в службе поддержки WPML.
Problem: The client is using a template created with ACF, where each page has multiple modules and components with radio inputs set to 'translate'. This requires marking 'Translation is complete' multiple times per page, which is cumbersome and time-consuming for translators. Solution: We recommend setting the radio input fields to 'copy' instead of 'translate'. This change means you won't need to mark 'Translation is complete' for these fields repeatedly. You will need to adjust the output on the front-end based on the selected options to ensure the content localizes correctly.
If this solution does not apply to your case, or if it seems outdated, please check the related known issues and confirm that you have installed the latest versions of themes and plugins. We highly recommend opening a new support ticket if further assistance is needed. You can do so at the WPML support forum.
2) يرجى مشاركة معلومات التصحيح الخاصة بك لمزيد من المساعدة. يمكنك قراءة شرح مفصل عن كيفية تقديم هذه المعلومات هنا.
قد تكون هذه الحلول غير ذات صلة إذا كانت معلوماتك قديمة أو لا تنطبق على حالتك. نوصي بشدة بمراجعة المشكلات المعروفة، التحقق من إصدار الإصلاح الدائم، والتأكد من تثبيت أحدث إصدارات القوالب والإضافات. إذا استمرت المشكلة، يرجى فتح تذكرة دعم جديدة.