• 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

Can I modify the grid loop to be 3 columns instead of 2 ?

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 › General Genesis Framework Discussions › Can I modify the grid loop to be 3 columns instead of 2 ?

This topic is: resolved

Tagged: genesis_grid_loop, grid loop

  • This topic has 6 replies, 2 voices, and was last updated 3 years, 8 months ago by Brad Dalton.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • March 15, 2022 at 12:36 am #504837
    soltan929
    Participant

    <?php

    function child_grid_loop_helper() {
    genesis_grid_loop( array(
    'features' => 1,
    'feature_image_size' => 'child_full',
    'feature_image_class' => 'post-image',
    'feature_content_limit' => 0,
    'grid_image_size' => 0,
    'grid_content_limit' => 0,
    'more' => __( '[Read More]', 'genesis' ),
    'posts_per_page' => 8,
    ) );
    }
    remove_action( 'genesis_loop', 'genesis_do_loop' );
    add_action( 'genesis_loop', 'child_grid_loop_helper' );

    genesis();

    March 15, 2022 at 1:26 am #504838
    Brad Dalton
    Participant

    You can use blocks or CSS grid columns, no need for the genesis grid loop anymore


    Tutorials for StudioPress Themes.

    March 15, 2022 at 5:38 pm #504842
    soltan929
    Participant

    Thank you for your reply and your useful website.

    March 15, 2022 at 9:36 pm #504843
    soltan929
    Participant

    I tried to use CSS as you mentioned in your tutorial, but it shows 3 columns, each column width is about 100px

    March 15, 2022 at 10:58 pm #504846
    Brad Dalton
    Participant

    You'll need to modify the CSS to work with your loops container class.

    You can learn more about CSS grid here https://www.w3schools.com/css/css_grid.asp


    Tutorials for StudioPress Themes.

    March 17, 2022 at 9:34 pm #504854
    soltan929
    Participant

    Well, I did, but is it better to use the default genesis loop or create a custom loop?

    March 17, 2022 at 10:50 pm #504855
    Brad Dalton
    Participant

    For archives, use the default loop built into every archive type with CSS grid to display in columns unless using blocks.


    Tutorials for StudioPress Themes.

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

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 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