Created
November 11, 2013 18:14
-
-
Save JiveDig/7417661 to your computer and use it in GitHub Desktop.
// Change 'Sorry, no posts' text for books
This file contains hidden or 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
| // 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