• 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

Setting Grid Content to 0 Characters

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 › Setting Grid Content to 0 Characters

This topic is: not resolved

Tagged: genesis grid, home.php

  • This topic has 5 replies, 3 voices, and was last updated 9 years, 4 months ago by hortonsart.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • April 22, 2014 at 8:25 am #101861
    sneaker
    Member

    Maybe this is obvious and I'm looking right at the answer, but this one has been eluding me. I am using the Eleven40 Pro theme but I believe this will apply to any themes that use the Genesis grid.

    On the Home page I want to set the Genesis grid so that the titles of the posts will show but the content will be limited to no characters at all. I go into home.php and try entering "0" for 'grid_content_limit' => 0. However, that doesn't work since "0" is interpreted as an instruction to show all the content rather than none. So how do we set the grid so that the title shows but no content?

    Thanks very much in advance!

    April 22, 2014 at 9:25 am #101867
    Lauren @ OnceCoupled
    Member

    I was trying to do this at one point, as well. I don't think I ever found a good solution - ended up looking at some code of others who had accomplished it and they had just used display: none; to hide the text. That's what I do now, too. Good luck finding a more ideal solution, though!

    Best,
    Lauren


    We create mobile-first, PageSpeed-optimized, pixel-perfect custom themes! https://www.oncecoupled.com

    April 22, 2014 at 11:19 am #101894
    sneaker
    Member

    Thanks, Lauren; good to know I'm not alone on this one! Hopefully we will both have an answer soon…

    May 7, 2014 at 10:11 am #104064
    sneaker
    Member

    No replies? Am I able to get an answer to this please?

    May 7, 2014 at 10:50 am #104069
    Lauren @ OnceCoupled
    Member

    Not sure which grid loop this applies to: http://www.billerickson.net/code/genesis-grid-change-length-of-content-in-grid/


    We create mobile-first, PageSpeed-optimized, pixel-perfect custom themes! https://www.oncecoupled.com

    May 7, 2014 at 5:26 pm #104095
    hortonsart
    Member

    Have you tried?:

    
    /** Remove the post info function */
    remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
    
    /** Remove the post content */
    remove_action( 'genesis_entry_content', 'genesis_do_post_content' );
    
    
  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 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