Forums › Forums › Search & Filter Pro › Problem with metatag title after search
- This topic has 7 replies, 3 voices, and was last updated 8 years, 6 months ago by
Trevor.
-
Trevor(Private) July 5, 2017 at 4:12 pm #118932
It will be your theme that is creating that tag, and so you may need to add something to the child theme functions.php file specific to that results page (by page name or ID) to change or set the title. WordPress has its own preferred method to do this, which we allude to here:
However, this will only work if your theme uses the same method. If it does not, you will need to ask your theme author for a function to add to the child theme functions.php to set the title.
Anonymous(Private) July 10, 2017 at 11:01 am #119633Hi there, thank you for the reply, I’m using your code (below) and all is fine unless I activate also Yoast at the same time, how can solve the issue.
Is not a theme issue but a plugin compatibility issue.
add_filter(‘wp_title’,’search_form_title’);
function search_form_title($title){
global $searchandfilter;
if ( $searchandfilter->active_sfid() == 1668)
{
return ‘Search Results’;
}
else
{
return $title;
}Anonymous(Private) July 11, 2017 at 8:22 am #119862Thank you for your reply.
Finally I solved the issue using Display:post type as my page are custom post type.
Then using Yoast special pages configuration for the search.
I have another question for you:
It is possible to maintain the same search parameters switching from one language to another using WPML.
I mean if i was searching for ‘one_custom_taxonomy_one_language’ then switch to ‘same_custom_taxonomy_another_language’
Anonymous(Private) September 22, 2017 at 12:21 am #132428I’m wondering where that setting is that was changed: Finally I solved the issue using Display:post type as my page are custom post type.
Is this a setting within SEO Yoast? I’m having the same title issue and cannot figure out where to update this setting.
Thank you!
-
AuthorPosts