Created
October 20, 2017 12:31
-
-
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
This file contains 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
<?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( '…', '', $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