Page title says blog

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)

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.