skip to Main Content

Alter Search Results Page Header Title (Search results for….)

add_filter( 'wpex_title', function( $title ) {
	if ( is_search() ) {
		return 'Your Custom Text';
	}
	return $title;
}, 50 );
All PHP snippets should be added via child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)
Back To Top