Forums › Forums › Search & Filter Pro › Wrong meta title
Tagged: wrong meta title yoast
- This topic has 8 replies, 2 voices, and was last updated 8 years, 1 month ago by
Anonymous.
-
Anonymous(Private) January 29, 2018 at 6:43 pm #155785
Hi,
I use Search and Filter pro and Yoast on my client’s website.
I saw this topic : https://support.searchandfilter.com/forums/search/yoast/
But the solution don’t seem to work in my case. When I add the code in functions.php, all the pages become white. I don’t use Ajax.
Thank you!Anonymous(Private) January 31, 2018 at 6:39 pm #156475Hi,
The site doesn’t load if I add this code in functions.php :
add_filter(‘wpseo_title’,’search_meta_title’);
function search_meta_title($data){
global $sf_form_data;
if ( $searchandfilter->active_sfid() == 4902 )
{
return ‘Résultats de recherche | Inno-Centre’;
}
else{
return $data;
}
}Trevor(Private) February 5, 2018 at 6:11 pm #157529The solution snippet that Ross posted looks different:
https://support.searchandfilter.com/forums/topic/update-search-results-page-title/#post-155423
-
AuthorPosts