Hello,
I am using custom excerpt and this disables the read more option. However, I am using this php code to show read more text even while using custom excerpt.
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;
}
I would like to hide the read more text on desktop and mobile view.
Please help.
https://prnt.sc/p6mpnn