Problem: The client was experiencing issues with inconsistent language translations on their website using the WPML plugin with the Crafto theme. While the main content was translating correctly, other parts like the top bar and header remained in the original language (German) or changed languages inconsistently when navigating the site. Solution: We recommended increasing the WordPress memory limit as a preliminary step. However, the main solution involved modifying the theme's code. Specifically, the client needed to edit the
crafto_get_render_display_header
function within the theme's files to ensure proper language filtering. The modification was to add the argument
'suppress_filters' => false
to the query arguments array in the function. This change helped in applying the correct translations across different parts of the website. We advised the client to contact the theme authors to integrate this solution into their codebase to prevent similar issues in the future.
Please note that this solution might be outdated or not applicable to your specific case. If you're experiencing similar issues, we 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 for further assistance.