Custom template for search result is different depends on language

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)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.