I was wondering if anyone has the code snippet to modify or remove the text and/or button for “Read More” on the blog post page.
I want to only display title and images of blog posts without anything else. I created a child theme for it and added a functions.php to add the following snippet:
// Replaces the excerpt "Read More" text by a link
function new_excerpt_more($more) {
global $post;
return '<a class="read-article" href="'. get_permalink($post->ID) . '">REMOVE LINK</a>';
}
add_filter('excerpt_more', 'new_excerpt_more');