Jump to content


Photo
- - - - -

Search Results Always In English


This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1 driesup

driesup

    Newbie

  • Members
  • 4 posts

Posted 28 November 2012 - 03:32 PM

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!



#2 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts

Posted 28 November 2012 - 04:59 PM

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.



#3 driesup

driesup

    Newbie

  • Members
  • 4 posts

Posted 29 November 2012 - 04:15 PM

Hi,

 

Thanks for your answer. However, as I am quite the novice, I need some extra help.

 

I found this: 

Please Login or Register to see this Hidden Content

 

How do I implement it?



#4 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts

Posted 29 November 2012 - 04:45 PM

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