Forums › Forums › Search & Filter Pro › Change the title name on the search page
- This topic has 34 replies, 2 voices, and was last updated 8 years, 8 months ago by Anonymous.
-
Anonymous(Private) March 31, 2016 at 3:31 pm #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_TitleI 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(Private) March 31, 2016 at 7:14 pm #41158Go 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(Private) April 1, 2016 at 7:50 am #41202Hi 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,
BenoitTrevor(Private) April 1, 2016 at 9:31 am #41219Hi
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.
Trevor(Private) April 1, 2016 at 11:38 am #41231MMM
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(Private) April 1, 2016 at 12:30 pm #41233Sorry 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?
-
AuthorPosts