Home › Forums › Pro Support › Excerpts under featured image › Reply To: Excerpts under featured image
August 16, 2019 at 3:17 pm
#10790
Keymaster
Hey Sarah,
You could wrap your text in a div:
add_action( 'wpsp_before_content', function() {
$text = get_post_meta( get_the_ID(), 'your_custom_field', true );
if ( $text ) {
echo '<div class="your-custom-class-name">' . $text . '</div>';
}
}, 20 );