• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Appfinite

Appfinite

Premium WordPress Themes for The Genesis Framework

  • Themes
  • Blog
  • Tutorials and Resources
  • Forums
  • Contact Us

Add grid loop to front page

Home › Community Forums › Epik Theme Support › Add grid loop to front page

  • This topic has 3 replies, 3 voices, and was last updated 5 years, 9 months ago by Wes.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • May 4, 2017 at 7:35 am #21262
    genedavid
    Customer

    In a past version of the theme (1.2 or 1.3 I can’t remember) I was able to add code to the home.php file to get the grid loop to show the last ten post on the home page.

    I inserted the following code below home-feature-14

    It doesn’t seem to work with front-page.php

    Any advice?

    remove_action( ‘genesis_loop’, ‘genesis_do_loop’ );
    add_action( ‘genesis_loop’, ‘eleven40_grid_loop_helper’ );
    /** Add support for Genesis Grid Loop */
    function eleven40_grid_loop_helper() {

    if ( function_exists( ‘genesis_grid_loop’ ) ) {

    genesis_grid_loop( array(
    ‘features’ => 0,
    ‘feature_image_size’ => 0,
    ‘feature_image_class’ => ‘alignleft post-image’,
    ‘feature_content_limit’ => 0,
    ‘grid_image_size’ => ‘grid-thumbnail’,
    ‘grid_image_class’ => ‘alignnone’,
    ‘grid_content_limit’ => 250,
    ‘more’ => __( ‘[Read more…]’, ‘genesis’ ),
    ) );
    } else {
    genesis_standard_loop();
    }

    }

    May 4, 2017 at 2:34 pm #21264
    Eric
    Customer

    If you’re using the latest version of the theme then the option to have the blog posts show up at the end is already available as an option.

    The code to make it happen is much more complex than the grid loop code you added above, but the new version gives you the option to turn it on or off by checking a box. You can find that option in the Customize > Front Page Content Settings page.

    Also, they’re using front-page.php now for the home page files.


    I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

    May 8, 2017 at 4:31 pm #21302
    genedavid
    Customer

    I would like to keep the static home page than then put the latest content at the bottom. It doesn’t appear that I can do both with the new version of the theme.

    Is that correct?

    May 11, 2017 at 3:19 am #21329
    Wes
    Moderator

    With the latest version of Epik, you do have the option to add the Latest Blog posts under your Homepage Widgets (using the Customizer @eric mentioned above). Here’s what it looks like when you select that option – http://i.imgur.com/AeZ261y.png

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

Primary Sidebar

Search Forums

Affiliate Program

Looking to earn some money? Join our Affiliate program and earn 35% of every sale you refer. Top referrers earn 40-50%.

Join Now →

The Genesis Framework

All of our themes are designed for the Genesis Framework. You will need to purchase Genesis in order to use any of our themes.

Purchase Genesis

Hire a Web Developer

Need help setting up or customizing your website?

Contact Us →

Search Full Site

  • Buy Genesis!
  • Shopping Cart
  • Themes
  • My Account
  • Support Forums
  • Tutorials and Resources
  • Privacy Policy
  • Contact Us
  • Follow Us on Twitter

Copyright © 2023 · Appfinite · Built With The Genesis Framework