Forums › Forums › Search & Filter Pro › Page title says blog
Tagged: page title
- This topic has 5 replies, 2 voices, and was last updated 10 years, 3 months ago by
Trevor.
Viewing 6 posts – 1 through 6 (of 6 total)
-
Anonymous(Private) May 30, 2016 at 11:28 am #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(Private) May 31, 2016 at 11:16 am #47101OK, 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.
-
AuthorPosts
Viewing 6 posts – 1 through 6 (of 6 total)