Forums Forums Search & Filter Pro Custom template for search result is different depends on language

Viewing 4 posts - 1 through 4 (of 4 total)
  • Anonymous
    #16925

    Hello.
    I have a strange issue. I put a search form in two pages using the same .php template to display results. But the search result page differs between english and french: the page title is different (the english one is “blog”!!) and the links in the french page are rewrited (it adds home-url to the normal url)

    Here you have the two pages results:
    FR: http://twinmotion.abvent.com/?sfid=6184
    ENG: http://twinmotion.abvent.com/?sfid=5867&lang=en

    thank you for your help!

    Riccardo

    Ross Moderator
    #16978

    Hey Riccardo

    S&F does not update your page title (yet) – you can update it using WP hooks:

    https://support.searchandfilter.com/forums/topic/change-page-title-for-search-results/

    I am adding this as a feature for an upcoming version 🙂

    Thanks

    Anonymous
    #17268

    Thank you Ross.
    The problem is not how to update the page title, but, I would like to find out why the title of the search results page in the English version is “blog” and in French it is like the first post-title in the page.

    Any idea?
    Thanks

    Ross Moderator
    #17564

    Hi Riccardo

    Search & Filter does not modify the page title anywhere.

    I think what is happening is your theme is detecting the search results as a blog page – this is probably detected based on some values inside the query object, probably is_archive or something similar is set to true, and the theme/WP defaults this to to “Blog”.

    Search & Filter is not part of WordPress (obviously) so there is guaranteed default behaviour.

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)