Skip to content

Instantly share code, notes, and snippets.

@JiveDig
Created November 11, 2013 18:14
Show Gist options
  • Select an option

  • Save JiveDig/7417661 to your computer and use it in GitHub Desktop.

Select an option

Save JiveDig/7417661 to your computer and use it in GitHub Desktop.
// Change 'Sorry, no posts' text for books
// Change Sorry no posts text for books
add_filter( 'genesis_noposts_text', 'child_noposts_text' );
/**Changes the No Posts text for search pages */
function child_noposts_text() {
if ( is_post_type_archive('download') OR ( is_tax('download_category' ) ) ) {
return '<span class="no-posts">' . __( 'Sorry, no books matched your criteria.', 'genesis' ) . '</span>';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment