Hi X Theme:
Within my child theme, I added the following code found in the forum under functions.php:
// Custom 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 x-btn x-btn-regular x-btn-flat">' . __( 'Read More', '__x__' ) . '</a></div>';
} else if ( $stack == 'renew' ) {
return ' ... <a href="' . get_permalink() . '" class="more-link x-anchor x-anchor-button"><div class="x-anchor-content"><div class="x-anchor-text"><span class="x-anchor-text-primary">' . __( 'Read More', '__x__' ) . '</span></div></div></a>';
} else if ( $stack == 'icon' ) {
return ' +++';
} else if ( $stack == 'ethos' ) {
return ' +++';
}}
add_filter( 'excerpt_more', 'x_excerpt_string' );
endif;
The Read More button looks fine, but before/after the button is a little artifact that when explored is an additional “read more” link. I’m guessing it’s related to the x_after_the_excerpt_begin/ends hooks.
You can see this here: http://ccph.lisaburger.com/blog/
Be sure to scroll down to the 3rd/4th blog post to see what I’m talking about. It’s the black square/dot before and after the button.
I’ve looked pretty hard to find where the x_after_the_excerpt_ hooks are created and can’t find them. I can see where they are called in /framework/views/global/_content-the-excerpt.php.
Is there a way to clear what’s stored and outputted in there?