Created
April 17, 2018 20:28
-
-
Save adambradford/233e50a1ee8c5f13c0fe7283bd14bcb2 to your computer and use it in GitHub Desktop.
Replace the ‘Sorry, no content matched your criteria’ message in a WordPress site built with the Genesis Framework
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Add this to your functions.php file. Do NOT include the opening php tag | |
//* Replace the ‘Sorry, no content matched your criteria’ message | |
add_filter( 'genesis_noposts_text', 'ab_change_search_text_two', 10, 2 ); | |
function ab_change_search_text_two( $text ) { | |
$text = __( 'Replace this with your own text'); | |
return $text; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment