How to show excerpt on homepage if it exists

Community Forums Forums Design Tips and Tricks How to show excerpt on homepage if it exists

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Dorian Speed 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #86254

    zekit
    Member
    Post count: 14

    Hey guys, I am using genesis with Minimum Pro and I am looking for a way to show the post excerpt (if there is one) in the homepage instead of the post content .

    Can anyone help me?

    • This topic was modified 9 months ago by  zekit.
    • This topic was modified 9 months ago by  zekit.
    http://wpsite.co.il
    #86988

    Dorian Speed
    Participant
    Post count: 140

    Find the following code in front-page.php

    //* Genesis grid loop
    function minimum_grid_loop_helper() {
    
    	if ( function_exists( 'genesis_grid_loop' ) ) {
    		genesis_grid_loop( array(
    			'features'              => 0,
    			'feature_image_size'    => 0,
    			'feature_content_limit' => 0,
    			'grid_image_size'       => 0,
    			'grid_content_limit'    => 250,
    			'more'                  => __( '[Read more]', 'minimum' ),
    		) );
    	} else {
    
    		genesis_standard_loop();
    
    	}
    
    }

    Replace it with this (changing the grid content limit to zero):

    //* Genesis grid loop
    function minimum_grid_loop_helper() {
    
    	if ( function_exists( 'genesis_grid_loop' ) ) {
    		genesis_grid_loop( array(
    			'features'              => 0,
    			'feature_image_size'    => 0,
    			'feature_content_limit' => 0,
    			'grid_image_size'       => 0,
    			'grid_content_limit'    => 0,
    			'more'                  => __( '[Read more]', 'minimum' ),
    		) );
    	} else {
    
    		genesis_standard_loop();
    
    	}
    
    }

    Bringing websites Up to Speed
    Firebug will light the way to understanding the secrets of the Internet!

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

You must be logged in to reply to this topic.