Created
May 24, 2017 15:21
-
-
Save SiGaCode/473a967e877cb120d32591fbcbcd011a to your computer and use it in GitHub Desktop.
Change the "no posts found" text in Genesis to a custom text
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
add_filter('genesis_noposts_text', 'sg_noposts_text'); | |
function sg_noposts_text($text) | |
{ | |
$text = '<span class="noposts-text">' . __('Ups, didn´t find any posts.', 'sg') . '</span>'; | |
return $text; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment