Skip to content

Instantly share code, notes, and snippets.

@adambradford
Created April 17, 2018 20:28
Show Gist options
  • Save adambradford/233e50a1ee8c5f13c0fe7283bd14bcb2 to your computer and use it in GitHub Desktop.
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
<?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