May 5, 2015 at 9:52 pm
#6756
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;
}