Reply To: Add text above recent posts

#6756
Ron
Keymaster

Here’s a sample function you can use. This is to be added on a child-theme’s functions.php

add_filter( 'asteroid_excerpt_thumbnail', 'ra_thumbnail_text' );

function ra_thumbnail_text( $image ) {
   $text = 'Sample Text';
   $text = '<div class="featured-image-text">' . $text .'</div>';
   return $text . $image;
}