- This topic has 5 replies, 2 voices, and was last updated 9 years, 7 months ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Page title says blog
Tagged: page title
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!
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.