• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Displaying Blogs posts on homepage

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Displaying Blogs posts on homepage

This topic is: not resolved

Tagged: blogs posts home page, eleven 40 pro

  • This topic has 1 reply, 2 voices, and was last updated 7 years, 12 months ago by Marcy.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • September 29, 2015 at 7:55 am #166931
    newedgemarketing
    Member

    I currently have my most recent post at the top of my home page followed by 4 or 5 of the most recent articles underneath the most recent.

    The article underneath are small so you get two articles in the width as the one above it, hope that makes sense!

    What I want to do is change it so that its just 4 or 5 posts directly underneath each other all the same width (showing excerts only not the full width - I know how to do that but.

    I'm just not sure how to display the posts on the home page that way!

    Thanks in advance!

    http://www.newedgemarketing.co.uk/
    October 3, 2015 at 9:57 pm #167336
    Marcy
    Participant

    You have to edit your home.php template in your eleven-40-pro theme folder. You should make a copy first and then you will need to upload it using your CPanel file manager or FTP.

    In home.php find:

    //* Add Genesis grid loop
    remove_action( 'genesis_loop', 'genesis_do_loop' );
    add_action( 'genesis_loop', 'eleven40_grid_loop_helper' );
    function eleven40_grid_loop_helper() {
    
    	if ( function_exists( 'genesis_grid_loop' ) ) {
    		genesis_grid_loop( array(
    			'features'              => 1,
    			'feature_image_size'    => 0,
    			'feature_image_class'   => 'alignleft post-image',
    			'feature_content_limit' => 0,
    			'grid_image_size'       => 'grid-featured',
    			'grid_image_class'      => 'grid-featured',
    			'grid_content_limit'    => 250,
    			'more'                  => __( '[Continue reading]', 'eleven40' ),
    		) );
    	} else {
    		genesis_standard_loop();
    	}
    
    }

    Features is the large post at the top, so you will want to change the 1 to 5. And then the feature_content_limit is 0 which means that the entire post shows. You can leave it 0 so all the post content for all the posts show, or you can change it to something else, like 250 characters or 450 characters.
    Then it would look like:

    //* Add Genesis grid loop
    remove_action( 'genesis_loop', 'genesis_do_loop' );
    add_action( 'genesis_loop', 'eleven40_grid_loop_helper' );
    function eleven40_grid_loop_helper() {
    
    	if ( function_exists( 'genesis_grid_loop' ) ) {
    		genesis_grid_loop( array(
    			'features'              => 5,
    			'feature_image_size'    => 0,
    			'feature_image_class'   => 'alignleft post-image',
    			'feature_content_limit' => 450,
    			'grid_image_size'       => 'grid-featured',
    			'grid_image_class'      => 'grid-featured',
    			'grid_content_limit'    => 250,
    			'more'                  => __( '[Continue reading]', 'eleven40' ),
    		) );
    	} else {
    		genesis_standard_loop();
    	}
    
    }

    Marcy | Amethyst Website Design | Twitter

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble