Skip to content

Instantly share code, notes, and snippets.

@nickcernis
Created October 20, 2017 12:31
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 nickcernis/f5d9772945f5673331912da4e076b704 to your computer and use it in GitHub Desktop.
Save nickcernis/f5d9772945f5673331912da4e076b704 to your computer and use it in GitHub Desktop.
Strip the ellipsis from the Genesis read more text in the Featured Page widget
<?php
add_filter( 'get_the_content_more_link', 'custom_remove_ellipsis' );
/**
* Strips the ellipsis from the Genesis more link.
*
* @param string $more_link_html The current more link HTML.
* @return string The link HTML without the ellipsis.
*/
function custom_remove_ellipsis( $more_link_html ) {
$link_without_ellipsis = str_replace( '&#x02026;', '', $more_link_html );
return $link_without_ellipsis;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment