Skip to content

Instantly share code, notes, and snippets.

@SiGaCode
Created May 24, 2017 15:21
Show Gist options
  • Save SiGaCode/473a967e877cb120d32591fbcbcd011a to your computer and use it in GitHub Desktop.
Save SiGaCode/473a967e877cb120d32591fbcbcd011a to your computer and use it in GitHub Desktop.
Change the "no posts found" text in Genesis to a custom text
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