[Resolved] Drop the “read more” text below excerpt

Home Forums Support [Resolved] Drop the “read more” text below excerpt

Home Forums Support Drop the “read more” text below excerpt

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1603049
    Jerry

    Hi guys, 2 things I need help with.

    I used this to add the “read more” text back on the archive which works great!

    add_filter( 'wp_trim_excerpt', 'tu_excerpt_metabox_more' );
    function tu_excerpt_metabox_more( $excerpt ) {
        $output = $excerpt;	
    
        if ( has_excerpt() ) {
            $output = sprintf( '%1$s <a href="%2$s">%3$s</a>',
                $excerpt,
                get_permalink(),
                __( 'Read more>>', 'generatepress' )
            );
        }
    
        return $output;
    }

    However, I like it drop down 2 lines. Currently, it is in line with the last words of the excerpt. So basically I want to drop it a full line to create a little space.

    Secondly, what CSS do I need to make the text bold?

    Thank you!

    http://jeroenc2.sg-host.com/blog/

    #1603198
    Ying
    Staff
    Customer Support

    Hi Jerry,

    You could try this CSS to move the Read more down and bold the text:

    .entry-summary p {
        display: flex;
        flex-direction: column;
    }
    .entry-summary p a {
        margin-top: 1em; /*adjust the number yourself */
        font-weight: bold;
    }

    Let me know ๐Ÿ™‚

    #1603220
    Jerry

    This worked flawlessly, thank you!

    #1603263
    Ying
    Staff
    Customer Support

    Glad to hear that ๐Ÿ™‚

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.