• Hello,

    we are facing a tricky problem with our bilingual WordPress website and need help. We are using the “Highend” theme and have a website that is available in both English and German. The website is configured to be accessible at “website”.com for English content and “website.com”/de/home for German content. We are also using Polylang.

    Problem:
    The main problem lies in the search functionality of the website. When users search for content on the German site (website.com/de/home), they are directed to the search results page, but it only shows the English articles (i.e. the results from website.com/?s=keyword instead of website.com/de/?s=keyword). We would like the search function on the German page to only show German blog articles. We tested it with the twenty-twenty theme and it worked, so there is a problem with the theme and polylang. I also wrote to the theme developers, but so far, I have not got any solution for it.

    What I have tried:
    Checked the theme’s searchform.php and search.php files, but am unsure how to customize them for this specific functionality.

    Question:
    How can we solve this problem?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chouby

    (@chouby)

    Hello,

    This is probably an issue with your search form which doesn’t include the right filter to allow Polylang to adapt the URL. Please read https://polylang.pro/always-use-get_search_form-to-create-search-forms/. This is an old post but still valid.

    Thread Starter noah123456

    (@noah123456)

    Hi, thank you for the quick response. We tested it, but sadly it is not the solution to our problem. The problem on the german site is that you don’t get redirected to /de/?s=keyword. Because when we set the /de/?s=keyword manually in the URL it works fine and all german posts appear.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.