Problem: You are using WPML with Beaver Builder and have set up separate domains for different languages. However, when you switch languages in the WP Admin panel, the 'wp-wpml_current_language' cookie does not update correctly. It shows 'en' instead of 'ja', and when switching from the English domain to the Japanese domain, two cookies with values 'en' and 'ja' appear. Solution: We have identified that this issue might be related to custom code that alters WPML's default behavior. We recommend checking any custom code that might interfere with WPML's handling of cookies. Additionally, we suggest using WPML Hooks as a possible workaround for managing cookies across different domains. You can find more information on WPML Hooks here: WPML Hooks Reference. 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 further assistance is needed, please open a new support ticket at WPML Support Forum.
Problem: If you're experiencing issues with the language switcher on the mobile version of your site, such as wanting to adjust its position or remove an unwanted white bar at the bottom, we can help. Solution: We recommend inserting the following custom CSS code to adjust the language switcher's position and remove the white bar. You can add this code by navigating to WP > Appearance > Customize > Additional CSS:
@media only screen and (max-width: 600px) {
.wpml-ls-legacy-list-horizontal.wpml-ls-statics-footer {
margin-bottom: 0px;
}
}
Please note that this code is for educational purposes and may not be the final solution. It's meant to guide you in the right direction.
If this solution does not fully address 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 further assistance is needed, please open a new support ticket at WPML support forum.
Problem: You are experiencing an issue where a hardcoded string 'Built for the New Reality' on your homepage is not displaying its French Canadian translation on the live site, despite working on the staging site. You've tried saving the page, syncing theme translations, updating the translated string in String Translation, and clearing the page cache. Solution: We noticed that WPML could not write to the
/wp-content/languages/wpml
folder, which prevents it from generating the .mo files necessary for displaying translations. To resolve this, please ensure that WPML has the necessary permissions to write to this folder. You can do this by following these steps: 1. Visit the WPML documentation on .mo file generation. 2. Navigate to WPML → Theme and Plugins Localization. 3. Generate the .mo files.
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 needed, please do not hesitate to open a new support ticket for further assistance at WPML support forum.
Problem: The client wants to automatically translate articles using PHP when they are published in English, and then mark them for review. They also need to notify registered translators for the specific language translation, in this case, English to Dutch. Solution: Currently, WPML does not support this specific requirement directly. To achieve this functionality, it requires custom development. We recommend using WPML's hooks and filters to implement such a solution. You can find more information and guidance on our WPML Hooks Reference. If you require further assistance with the development, consider hiring one of our certified WPML contractors who specialize in custom multilingual solutions.
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 this does not resolve your issue, please open a new support ticket.
Issue:
How to ensure that hyperlinks on the website are correctly adjusted to the corresponding language after using WPML to automatically translate content?
Solution:
If you’re experiencing an issue where hyperlinks do not automatically switch to the appropriate language after using WPML’s automatic translation, we recommend reviewing and updating your custom XML configuration. Below is a sample configuration that you can adjust based on your specific needs:
Please ensure that your configuration is accurate and compatible with the elements and plugins used on your website.
Note that this solution may become outdated due to version updates or may not apply to your specific case. We strongly recommend visiting the Known Issues page to verify the solution’s version compatibility and ensure you have the latest versions of your theme and plugins installed. If the issue persists, we suggest opening a new support ticket.
Problem: You are trying to configure WPML to copy custom post titles instead of translating them, but some of your custom post types are translating titles when they should be copied. Solution: We do not have a built-in feature in WPML to exclude custom post titles from translation. This requires custom development. You can use the following example as a starting point: https://wpml.org/forums/topic/do-not-translate-title-with-automatic-translation/#post-13051837 Make sure to replace "product" in the code with your specific custom post type. Here is how you can modify the code:
$posttype == "your_custom_post_type"
Please ensure to backup your database before making any changes.
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 need assistance, please open a new support ticket at WPML support forum.
Problem: You are using WPML with WPForms and the WPForms Multilingual plugin, and you're facing an issue where notification emails are not sent in the correct language after translating the form. Despite translating the texts in WPForms, the notification email still contains German text. Solution: We recommend modifying the plugin code to ensure that the notification emails are sent in the correct language. Specifically, you should edit the file wp-content\plugins\wpml-wpforms\classes\Hooks\WpForms\Notifications.php line 95 and comment it out, for example:
This change should help display the correct language in the notification emails as shown in the logs. Please check and confirm if this resolves the issue.
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 the issue persists, please open a new support ticket.
Problema: Il cliente ha bisogno di aggiungere una bandiera giapponese al selettore di lingua nel menu principale che reindirizza a un sito giapponese diverso, non alla stessa installazione multilingue. Soluzione: Attualmente, non esiste una documentazione specifica per aggiungere un link a un sito esterno tramite il selettore di lingua di WPML. Tuttavia, è possibile aggiungere un selettore di lingua personalizzato tramite PHP seguendo la guida disponibile qui. Per integrare un link che reindirizza a un sito esterno, sarà necessario sviluppare una funzione personalizzata. Consigliamo di consultare uno dei nostri contractors per sviluppare questa soluzione personalizzata.
Se questa soluzione non è più rilevante o non si applica al tuo caso, ti invitiamo a verificare i problemi noti, a confermare che hai installato le versioni più recenti di temi e plugin e, se necessario, a aprire un nuovo ticket di supporto.
Problem: The client is using a custom function to add menu items to a WordPress menu based on user login status. However, when adding the WPML language switcher, the custom menu items appear after the language switcher instead of before it. Solution: We recommend modifying the function to ensure that the custom menu items appear before the WPML language switcher. You can use the following code:
add_filter('wp_nav_menu_items', 'add_custom_menu_items_before_wpml', 10, 2);<br />function add_custom_menu_items_before_wpml($items, $args) {<br /> // Your new menu item(s)<br /> if (is_user_logged_in()) {<br /> $custom_items = '<li><a href="' . esc_html_x('/conta/', 'Botão no menu de navegação URL', 'lwp') . '">' . esc_html_x('Conta ', 'Botão no menu de navegação', 'lwp') . '</a> </li>';<br /> $custom_items .= '<li><a href="' . wp_logout_url() . '">' . esc_html_x('Sair ', 'Botão no menu de navegação', 'lwp') . '</a> </li>';<br /> } else {<br /> $custom_items = '<li><a href="' . wp_registration_url() . '">' . esc_html_x('Registar ', 'Botão no menu de navegação', 'lwp') . '</a> </li>';<br /> $custom_items .= '<li><a href="' . esc_html_x('/conta/', 'Botão no menu de navegação URL', 'lwp') . '">' . esc_html_x('Entrar ', 'Botão no menu de navegação', 'lwp') . '</a> </li>';<br /> }<br /> // Find the WPML language switcher and insert before it<br /> $pattern = '/(<li[^>]*class="[^"]*menu-item-wpml-ls[^"]*"[^>]*>)/i';<br /> if (preg_match($pattern, $items, $matches)) {<br /> $items = preg_replace($pattern, $custom_items + $matches[1], $items, 1);<br /> } else {<br /> // Fallback if language switcher not found — append instead<br /> $items += $custom_items;<br /> }<br /> return $items;<br />}
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 this does not resolve your issue, please open a new support ticket at WPML support forum.
Problem: You are trying to translate a modal box on a global CTA bar using WPML. The Gravity Form is translated, but the title of the modal box and the close button are not appearing in the translation strings. The title uses the dynamic title of Avada, which is similar to the container text and is translatable. Solution: To make the title of the modal box translatable, we added a custom XML configuration. Please add the following code to your WPML settings:
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 https://wpml.org/forums/forum/english-support/.