Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrwweb/00e24b9e8e0fe2b9bc43 to your computer and use it in GitHub Desktop.
Save mrwweb/00e24b9e8e0fe2b9bc43 to your computer and use it in GitHub Desktop.
Change or hide the "..." in the "Read More..." link in Feature a Page Widget 2.0.2
/**
* changes read more link from "Read More..." to "Read More!"
*
* @param string $ellipsis punctionation at end of read more link
*
* @return string new punctuation
*/
add_filter( 'fpw_read_more_ellipsis', 'fpw_change_read_more_ellipsis_to_exclamation' );
function fpw_change_read_more_ellipsis_to_exclamation() {
return '!';
}
/**
* hide ellipsis in "Read More..." link
*/
add_filter( 'fpw_read_more_ellipsis', '__return_null' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment