Forums Forums Search & Filter Pro Wrong meta title

Viewing 9 posts - 1 through 9 (of 9 total)
  • Anonymous
    #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!

    Trevor
    #155790
    This reply has been marked as private.
    Anonymous
    #156397
    This reply has been marked as private.
    Trevor
    #156427

    Hi

    Your site will not load?

    Anonymous
    #156475

    Hi,

    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
    #156477
    This reply has been marked as private.
    Anonymous
    #157527
    This reply has been marked as private.
    Trevor
    #157529
    Anonymous
    #157791

    It worked!
    Thank you!

Viewing 9 posts - 1 through 9 (of 9 total)