Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 5 replies, has 2 voices.

Last updated by malteR-6 4 years, 7 months ago.

Assisted by: Mihai Apetrei.

Author Posts
November 14, 2020 at 4:08 pm #7448591

malteR-6

Hello, I have my site set up with the Divi Theme. Default Language is german and I want to translate to english. I created a seperate search results page in english with the Theme Builder and when I use the standard WP Search fields in the widgets and mainmenu it works fine. However, when I enter a searchterm in the divi - search field, when searching on the english version, then the german results page pops up, thus the redirect seems to be flawed.

I did a bit of research online and it seems that I have to manipulate the code of the divi search fields. However, I am not so experienced and I am worried that it goes wrong. Could you please give me clear instructions which files I have to manipulate with which code to make it work?! I have a divi search field on my homepage and another one on the search results page, build with the Theme Builder.

Thanks for your help in advance.

Regards

November 17, 2020 at 9:57 am #7464661

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

I'm not sure if this is related to the same issue reported here (https://wpml.org/forums/topic/search-results-not-in-the-correct-language-2/).

Take a look there and see if that solution resolves your problem.

Let me know how that goes.

Kind regards,
Mihai Apetrei

November 17, 2020 at 2:41 pm #7467405

malteR-6

Hello Mihai,

yes, this seems to be the same issue. I understand that I have to create a child theme. I wanted to do this anyway. However, my problem now is that I am not experienced in manipulating files. I already had a look in my FTP but I have no idea in which files I have to look to find the code for the search forms to be altered. As I mentioned before, there is one on my startpage and one on the search results page, build with the Theme Customizer. Can you tell me where I find the code (which files in FTP) in which I have to enter the code line?

Thanks and Regards

November 18, 2020 at 8:37 pm #7477947

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

I think you should find the search code somewhere inside this file: Go to your FTP > wp-content > themes > Divi > header.php.

Please let me know if you found it.

Also, here you can find more about how you can create a simple Divi child theme:
hidden link

Kind regards,
Mihai

November 19, 2020 at 2:19 pm #7484969

malteR-6

Thanks, I already found another good solution now. Since the Worspress-Search is working fine.

I just turned all my search forms to WordPress Search with help of this page: hidden link

This works well for me. Thus the issue is resolved.

Regards