Add grid loop to front page

Homepage Community Forums Epik Theme Support Add grid loop to front page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #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();
      }

      }

      #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

        #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?

          #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

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