I am running X Theme with Integrity Stack. On the home (blog) page, I have limited the excerpt content to 0 characters, and changed the “read more” link to a button.
- How can I remove the … showing up before “read more” button?
I pasted the following into my child theme functions.php, but did not see any change.
// Excerpt More String
// =============================================================================
if ( ! function_exists( ‘x_excerpt_string’ ) ) :
function x_excerpt_string( $more ) {
$stack = x_get_stack();
if ( $stack == 'integrity' ) {
return ' ... <div><a href="' . get_permalink() . '" class="more-link">' . __( 'Read More', '__x__' ) . '</a></div>';
} else if ( $stack == 'renew' ) {
return ' <a href="' . get_permalink() . '" class="more-link">' . __( 'Read More', '__x__' ) . '</a>';
} else if ( $stack == 'icon' ) {
return ' ...';
} else if ( $stack == 'ethos' ) {
return ' ...';
}
}
add_filter( ‘excerpt_more’, ‘x_excerpt_string’ );
endif;
- How can I change the words “read more” in the button to something else?