Modify or Remove "Read More" Link

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');

Nevermind, I decided to just use CSS to hide it.

.entry-content excerpt {
display:none;
}

If you wanted to modify or change the Title across the site or any text in any plugin, you can use the plugin loco Translate.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.