[Resolved] search results not in the correct language
This thread is resolved. Here is a description of the problem and solution.
Problem: The latest version of Divi (June 6th 2019) seems to no longer has the search bar compatible with WPML (it always redirect you to the search page of the default language)
Languages: English (English )Spanish (Español )Italian (Italiano )
Timezone: Europe/Rome (GMT+01:00)
Hello,
While we fix this on a permanent basis, i added a workaround to your site. i added the following hook: https://wpml.org/wpml-hook/wpml_add_language_form_field/ to your theme's header.php file in line 158 and 323 (there were 2 search forms defined there, the one you're using is the one with the code in line 323)
You can continue normally, we will ask the Divi Authors to add this fix on their end.
I don't use child theme, 'cause I don't edit php files. But now, you added a code to header.php I understand, and If I update Divi; it will be gone. Right? Then what do you recommend? And is it possible to let me know if Divi developers solve that problem?
Languages: English (English )Spanish (Español )Italian (Italiano )
Timezone: Europe/Rome (GMT+01:00)
We already sent everything to the Divi developers but it would be Excellent and even better if you could let divi developers know.
I think this will get fixed on the next Divi release, but if you can just create a child theme and copy the header.php file in there so you don't get that file overwritten.
Regards.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.