• I encountered this problem with the plugin:

    when I change the language from “English” to “Chinese” for example, all addresses ending in
    “?Lang=zh-hans”

    when I use the search box disappears the stretch “?lang=zh-hans” returning the site in English.
    for example if I try in Chinese to search the word “ear”: the result leads to the site in English and the search ends with:

    ?S=ear

    instead of:

    ?Lang=zh-hans&s=ear

    how can I solve this problem?

    thanks

    https://wordpress.org/plugins/relevanssi/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Add

    <input type='hidden' name='lang' value='zh-hans' />

    to your search form when the language is Chinese.

    (By the way, Relevanssi does not work properly in Chinese.)

    Thread Starter darkie78

    (@darkie78)

    thanks for reply Mikko,

    please, can you tell me in detail where i must add this code?

    another question please:

    i want to hide completely the_excerpt in the results page.

    is possibile?

    thank you, and thanks for this amazing plugin.

    Plugin Author Mikko Saari

    (@msaari)

    No, because I don’t know how your site prints out the search form. This is an easy job for a WP developer; perhaps you can hire one to fix this for you.

    To remove the excerpt from the results, you need to remove the_excerpt() from the search results template. It’s usually search.php in your theme, but may be something else. Again, a developer should be able to fix this in couple of minutes, unless your theme does something unusually complicated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Relevanssi plugin and problem with a languages.’ is closed to new replies.