Hello There,
Since the child theme is set up, please add the following code in your child theme’s functions.php file
// 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;
The code above contains the read more link in your blog post items in the blog index or archive pages.
Read more links will only appear when the auto excerpt is generated. If you are using Cornerstone in building the posts and used the manual excerpts, then most probably, read more links will not display.
You will be force to insert a custom read more link. To do that, simply add this code in your child theme’s functions.php file
function display_readmore(){
echo '<div><a href="' . get_permalink() . '" class="more-link">' . __( 'Read More', '__x__' ) . '</a></div>';
}
add_action('x_before_the_excerpt_end', 'display_readmore');
Hope this helps. Please let us know how it goes.