S
S
Sergey Shkurikhin2020-07-21 11:20:33
WordPress
Sergey Shkurikhin, 2020-07-21 11:20:33

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


In head: <title><?php echo $title; ?></title>

In header.php there is nothing about title at all. Please tell me how to remove..

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Shkurikhin, 2020-07-21
@shkyrikhin99

I just had to rename the main page.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question