We're merging with GenerateBlocks! Learn more here.

Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Excerpts under featured image Reply To: Excerpts under featured image

#10790
Tom
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 );