• 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

Quattro change grid

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 › Quattro change grid

This topic is: not resolved
  • This topic has 4 replies, 2 voices, and was last updated 12 years, 7 months ago by AnitaC.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • August 8, 2013 at 6:52 am #54859
    KarenLeighBurton
    Member

    Ok. so while I'm not a php expert - I know enough to be dangerous.

    here is the grid loop helper in home.php in quattro

    remove_action( 'genesis_loop', 'genesis_do_loop' );
    add_action( 'genesis_loop', 'quattro_grid_loop_helper' );
    /** Add support for Genesis Grid Loop */
    function quattro_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' => __( '[Continue reading]', 'genesis' ),
    'cat' => '4',
    'posts_per_page' => 2,
    ) );
    } else {
    genesis_standard_loop();
    }

    }

    I've assigned a category - it won't pull in the correct category, I've asked it only to display 2 posts, its still pulling in 10 - I've tried changing in the genesis >>theme settings as well as in the regular settings...

    Personally I'd like to remove the blog COMPLETELY from the homepage - but I don't know how to do that. Site is not live at the moment so I can't post a link.

    August 8, 2013 at 9:16 am #54920
    AnitaC
    Keymaster

    Under category - remove that last comma - I was looking at some other code with this same line of code and it doesn't appear to have a comma at the end.

    Also I read somewhere about that issue with the 10 posts. Go to Settings > Reading and change the number to the number 5 and see if that works. I saw others saying when you put 5 it works.


    Need help with customization or troubleshooting? Reach out to me.

    August 8, 2013 at 9:17 am #54921
    AnitaC
    Keymaster

    This is what I was looking at - http://wpsmith.net/category/genesis-grid-loop/.


    Need help with customization or troubleshooting? Reach out to me.

    August 8, 2013 at 9:19 am #54923
    KarenLeighBurton
    Member

    if i remove the comma I get some fatal error, but I'll try again as the article you linked is different than one I was working with. (thank you) and I've tried setting the number of posts in a few different places, I'm wondering if something is being called wrong somewhere else and I just don't know enough php to read it/find it.

    August 8, 2013 at 9:20 am #54924
    AnitaC
    Keymaster

    ugghh, maybe that's just a typo on Travis' post. I will keep looking. I know I saw others with the same issue getting the correct number of posts to show up.


    Need help with customization or troubleshooting? Reach out to me.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 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

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