Archived

This topic is now archived and is closed to further replies.

  • 0

Search Results Always In English

Question

Posted · Report post

Hi,

 

I have a pagelines website running WPML with three languages. French, Dutch, English.

 

When I do a search, for instance when in French, I only get English results. Obviously I need the French results.

 

What's the solution?

 

Thanks!

Share this post


Link to post
Share on other sites

3 answers to this question

Posted · Report post

Install the base theme ( child theme ) create a new file searchform.php in that folder, and add that html to that file.

Share this post


Link to post
Share on other sites

Posted · Report post

The search form uses the wordpress function home_url() to get the URL to post to, thats a standard.

 

You can replace the search form by adding a file searchform.php to your child theme and adding your own form html.

Share this post


Link to post
Share on other sites