Answer the question
In order to leave comments, you need to log in
How to make Yoast not substitute "Home" in the title?
Yoast does not want to remove the Page Title before the separator - it is on the main page that it substitutes Home |.... In the settings, I removed "Page" everywhere. Maybe it's not about Yoast, since I deactivated it, cleared the cache, but the problem remains. There are no separators in the theme settings. I found only this in the Functions.php file
function xmlrpc_getposttitle( $content ) {
global $post_default_title;
if ( preg_match( '/<title>(.+?)<\/title>/is', $content, $matchtitle ) ) {
$post_title = $matchtitle[1];
} else {
$post_title = $post_default_title;
}
return $post_title;
}
<title><?php echo $title; ?></title>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question