Having Trouble with showing the "Keep Reading" Link

Viewing 2 posts - 1 through 2 (of 2 total)
  • #20300
    moraitis
    Participant

    I am using the boxed page layout with the content on the right and the secondary sidebar on the left.

    I would like to list 4 of the latest posts, but have a “Keep Reading” link instead of the full post.

    I tried to show the “Keep Reading” link by going under the Templates tab, then selecting the Blog template, then under Entry Content, I dragged over the Post Excerpt box and dragged out the Post Content box. Instead of the “Keep Reading” link, a “…” is displayed.

    Am I missing another setting that would show the “Keep Reading” link?

    Please Help.

    #20323
    moraitis
    Participant

    UPDATE
    For my child theme I used the following code to stylize the excerpt ending.

    // Remove Functions We Want to Replace
    function child_theme_setup() {
    	// override parent theme's 'more' text for excerpts
    	remove_filter( 'excerpt_length', 'enlightenment_excerpt_length' ); 
    	remove_filter( 'excerpt_more', 'enlightenment_excerpt_more' ); 
    }
    add_action( 'after_setup_theme', 'child_theme_setup' );
    
    //set the length of the excerpt prior to the read more link
    function md_enlightenment_excerpt_length( $length ) {
    	if( is_singular() )
    		return 100;
    	if( doing_action( 'enlightenment_after_header' ) )
    		return 100;
    	$grid = enlightenment_get_grid( enlightenment_current_grid() );
    	if( 3 == $grid['content_columns'] )
    		return 50;
    	if( 4 == $grid['content_columns'] )
    		return 50;
    	return 100;
    }
    add_filter( 'excerpt_length', 'md_enlightenment_excerpt_length' );
    
    //set the text of the excerpt Keep Reading Link
    function new_excerpt_more( $more ) {
    	return '... <a class="read-more" href="'. get_permalink( get_the_ID() ) . '">' . __('Read More &rarr;', 'enlightenment') . '</a>';
    }
    add_filter( 'excerpt_more', 'new_excerpt_more' );

    These functions let me customize the excerpt length and make the Keep Reading link customized for my needs.

    Thanks for such a flexible theme!

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.