add_filter(‘elementor/utils/get_the_archive_title’, ‘custom_search_title_il’);
function custom_search_title_il($title){
if ( is_search() ) {
/* translators: %s: Search term. */
$title = sprintf( __( ‘Add Your custom title here: %s’, ‘elementor-pro’ ), get_search_query() );
if ( get_query_var( ‘paged’ ) ) {
/* translators: %s is the page number. */
$title .= sprintf( __( ‘ – Page %s’, ‘elementor-pro’ ), get_query_var( ‘paged’ ) );
}
}
return $title;
}
Change “Add your custom title here” text and paste the code in functions.php in child theme