Forums Forums Search & Filter Pro Page title says blog

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Anonymous
    #47014

    I have a search filter on my homepage. When a user uses the search, it takes them to a page that uses blog in the title:

    <title>Blog – Get Help Israel</title>

    You can see what I mean here: http://gethelpisrael.com/

    When a user uses the general site search, the title is:

    <title>You searched for whatever the search text is – Get Help Israel</title>

    Thanks!

    Trevor
    #47016

    What Display Results method are you using?

    Anonymous
    #47021

    I have it set to display as an archive. It is using search.php.

    Thanks!

    Trevor
    #47085

    Can I ask what theme you are using?

    Anonymous
    #47099

    We are using Pivot theme.

    Thanks

    Trevor
    #47101

    OK, the first attempt to fix involves adding code to the theme’s functions.php file. It would be best if you had a child theme, as this is a safer method.

    The code you can try is this:

    add_filter('wp_title','search_form_title');
    function search_form_title($title){
      global $searchandfilter;
      if ( $searchandfilter->active_sfid() == 35889) {
        return 'Search Results';
      } else {
        return $title;
      }
    }

    Change the id number for the one for your form.

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