Forums Forums Search & Filter Pro Change the title name on the search page

Viewing 10 posts - 1 through 10 (of 35 total)
  • Anonymous
    #41121

    Hello Trevor,

    Thank you so much for Ross’s support, the filter is now working !
    Only think I would like to change now is the title of the search page.
    How can I do it?

    I saw this this page :
    http://www.designsandcode.com/documentation/search-filter-pro/search-
    results/as-an-archive/#Update_Page_Title

    I added this code to my functions.php with my ID (2086) but nothing change. I still have the same title name… I don’t know why?

    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; }
    }

    Thanks for you support.

    Benoit

    Trevor
    #41158

    Go and make a VERY close examination of the quote marks and make SURE they are all the vertical ones, like 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;
     }
    }

    This forum and MANY text editors change some or all of them to the curly smart quotes. Which is why we have the code button in the editor toolbar, to stop that and other nasty things happening.

    Anonymous
    #41202

    Hi Trevor,

    I double check the code in my functions.php (here it is) :

    add_filter('wp_title','search_form_title');
    function search_form_title($title){ 
     global $searchandfilter;
     if ( $searchandfilter->active_sfid() == 2086) {
      return 'Search Results';
     } else {
      return $title;
     }
    }	

    But I still have a wrong title on my page…

    What can I do?

    thanks,
    Benoit

    Trevor
    #41205

    Is there a search form on the results page, or just the results?

    Anonymous
    #41214
    This reply has been marked as private.
    Trevor
    #41219

    Hi

    Looking in the admin has not resolved this but I can see that this is a theme from Cherry Frameworks, #49465 (Oblia):

    http://www.templatemonster.com/demo/49465.html

    It is possible that the theme is not using standard hooks to make the page, and this is why the title is not being changed. If they have tech support, show them the code you are using and ask if it has the correct hooks to work, because they may have a filter to do this.

    Anonymous
    #41230

    I’ll try to ask them but not sure they’ll be able to help me because usually they don’t do any support with other plugins…

    Trevor
    #41231

    MMM

    I would ask them that. The title on the blog page is not made by S&F at all, it is made entirely in the theme. I would simply ask them if there is a hook or method (other than using a language file, as that would affect other pages as well) to change the title on the blog page, and not mention S&F at all.

    Anonymous
    #41232

    Agree with you.
    I sent them an email. Waiting to see if they have a good support or not.

    Anonymous
    #41233

    Sorry Trevor, Monstertemplate have a very bad support !
    They said, the only way to do change the name of the Blog Page is directly on WPadmin/Page… If I do that I’ll change other pages as well…
    Their support is limited to the original template elements and layout. They do not provide assistance on adding any additional scripts or making changes…

    What can I do?

Viewing 10 posts - 1 through 10 (of 35 total)