Forums › Forums › Search & Filter Pro › Custom template for search result is different depends on language
Tagged: custom template, search result page
- This topic has 3 replies, 2 voices, and was last updated 9 years, 6 months ago by Ross.
-
Anonymous(Private) May 7, 2015 at 2:11 pm #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=enthank you for your help!
Riccardo
Ross Moderator(Private) May 7, 2015 at 10:33 pm #16978Hey 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
Ross Moderator(Private) May 15, 2015 at 10:23 am #17564Hi 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
-
AuthorPosts