Problem: The client wants to replicate the WPML Website Language Switcher styling and behavior on their website, specifically addressing the issue of excessive space on the right of the flags in the language switcher. Solution: We recommended the client to apply custom CSS to adjust the styling of the language switcher. Here are the steps and the code provided:
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 further assistance is needed, please open a new support ticket at WPML support forum.
The client is experiencing display issues on their website when translating pages into Kurdish and Urdu using WPML. These languages, which use right-to-left (RTL) scripts, show the pages as scrambled and mostly white.
Solution:
We recommend verifying if the theme used on the site fully supports RTL languages. This involves more than just text direction; it also includes layout adjustments, icons, and animations. Here are the steps to diagnose and potentially resolve the issue:
1. Ensure you have a full site backup before making changes. 2. Add another RTL language, such as Arabic or Hebrew, to see if similar display issues occur. 3. Temporarily switch to a default WordPress theme like Twenty Twenty-Four or Twenty Twenty-Five to check if the problem persists.
For more detailed guidance, please refer to our documentation on RTL support:
If these steps do not resolve the issue or if the solution seems outdated or irrelevant 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 problems persist, please open a new support ticket.
Problem: You are trying to create translations for the Dutch language, but some pages aren't connected to the correct main translation page. Solution: We recommend manually linking already translated pages using the WPML UI. You can follow the step-by-step guide here: https://wpml.org/faq/how-to-link-already-translated-pages/ If you are considering creating a custom query, it might be useful to understand how WPML stores language data in the database. You can find more information here: https://wpml.org/documentation/support/wpml-tables/ However, we strongly advise against direct modifications to the database unless absolutely necessary, as this can lead to unexpected issues.
If this solution does not apply to your case, or if it seems outdated, please do not hesitate to open a new support ticket. We also 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.
Problem: You are trying to allocate products in categories, but they disappeared in the wp-admin categories screen. Although the search results counter shows a number greater than zero, no categories appear in the list.
Solution:
The problem was caused by a custom function in the theme files. Removing that function fixed it!
Please note that this solution might be irrelevant if it's 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.
The client is using different forms for each language version of a page, embedded via shortcodes from the Spotler/Mailplus plugin. The Dutch version of the form is overriding key parameters in the form action, affecting its submission.
Solution:
We recommend the following steps to address the issue:
1. Ensure that each language version of the page uses the correct form shortcode. Add them manually if necessary. 2. If preserving URL arguments through WPML settings does not resolve the issue, consider using custom code to maintain the correct form settings upon submission. 3. As a backup, implement a JavaScript snippet to modify the form action after the page loads. 4. If the problem persists, consider switching to a different form plugin that is more compatible with WPML. For more information on compatible form plugins, visit https://wpml.org/plugin-functionality/form/.
If these solutions do not apply to your case, or if they seem outdated, please open a new support ticket. We also 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, you can contact us directly through our support forum at WPML support forum.
The client is using ACF Pro to set up a custom post type (CPT) called 'Case Studies' and needs to translate the URL slug for different languages, aiming for a structure like '/references/case-studies/{cpt-title}' for English.
Solution:
We recommend following these steps:
1) Navigate to WPML >> Settings >> Slug Translations. 2) Enable the option: 'Translate base slugs of custom post types and taxonomies (via WPML → Taxonomy translation)'. 3) Scroll down to the Post Types Translation section. 4) Click on 'Set different slugs in different languages'. 5) Enter the translated slug for each language and save the changes. 6) Go to Settings >> Permalinks and click 'Save Changes' (no need to modify anything). 7) Clear all types of caches (plugin, browser, server, CDN, etc.). For further guidance, refer to our documentation on translating page slugs and translating slugs for custom post type archives.
If this solution does not apply to your case, or if it seems outdated, please open a new support ticket. We also 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, you can contact us directly through our support forum.