I solved the Issue which was coming from the title-tag support and the way it handles the document title parts. I simply wrote this filter to return an empty tagline when on home/front page.
function document_filter_parts( $title_parts ) {
// Alter the tagline output.
$title_parts['tagline'] = '';
return $title_parts;
}
add_filter( 'document_title_parts', 'document_filter_parts' );
Thanks for your help anyway.
I developed theme myself from scratch for my business, I mean I’m not using the function wp_title which used to cause the problem but instead I’m using the support theme title-tag. Is there any suggestions you may have for me to help?
hey there,
I’m also struggling with this issue for days now, I tried almost all the above suggestions and still no results, and I have everything up to date just to make sure the problem isn’t coming from some conflicts in versions or updates.
Any other suggestions please?