- This topic has 2 replies, 2 voices, and was last updated 9 years, 6 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 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 › search page title
Tagged: page title
Hi there
I use your nice plugin version pro
I have the problem that if I do a search the meta-tile of the page became the page title of the first result funded.
I wish to write something like ”Search Results | Site Name”;
I get your code
add_filter(‘wp_title’,’search_form_title_it’);
function search_form_title_it($title){
global $searchandfilter;
if ( $searchandfilter->active_sfid() == 766)
{
return ‘Risultati della ricerca | Site Name’;
}
else
{
return $title;
}
}
add_filter(‘wp_title’,’search_form_title_en’);
function search_form_title_en($title){
global $searchandfilter;
if ( $searchandfilter->active_sfid() == 775)
{
return ‘Search Results | Site Name’;
}
else
{
return $title;
}
}