Archived topic
read more button not showing
3 replies · Started by Marcos on June 5, 2019
Even though I have the "Read more" label active, text or button are not showing.
Thank you
Hi there,
Are you using custom excerpt?
If so give this a shot:
https://docs.generatepress.com/article/activating-read-custom-excerpt/#read-more-button
Let me know :)
Leo, yes, I'm using excerpts on my posts.
Where do I supose to past that code?
add_filter( 'wp_trim_excerpt', 'tu_excerpt_metabox_more' );
function tu_excerpt_metabox_more( $excerpt ) {
$output = $excerpt;
if ( has_excerpt() ) {
$output = sprintf( '%1$s %3$s',
$excerpt,
get_permalink(),
__( 'Read more', 'generatepress' )
);
}
return $output;
}
Hi there,
this article explains:
https://docs.generatepress.com/article/adding-php/
If you're not using a child theme then the Code Snippets plugin ( link to that in the article ) is the easiest place to add it.