OK, so the site uses a Block Element titled in Appearance > Elements titled: Global Page Header
And that was neveer meant for search results.
To make it work for them:
1. Add this PHP Snippet to your site:
add_shortcode('multi_title', 'get_custom_title' );
function get_custom_title() {
if ( is_singular() ) {
return get_the_title();
} elseif ( is_search() ) {
return 'Search results for: ' . get_search_query();
} elseif ( is_archive() ) {
return get_the_archive_title();
} else {
return get_bloginfo( 'name' );
}
}
2. edited the Global Page Header Element.
2.1 Select the Headline showing the title and uncheck the Dynamic Data option in the toolbar.
2.2 replace the title text with this shortcode [multi_title]
3. Publish the changes