• 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

How do I style excerpts?

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 › How do I style excerpts?

This topic is: not resolved
  • This topic has 3 replies, 2 voices, and was last updated 12 years, 3 months ago by Dorian Speed.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • February 23, 2013 at 11:35 pm #22517
    Wheeler
    Member

    I found some code to display my first two blog posts as full and another snippet to have another 4 posts as excerpts or "teasers."

    But now I want to style the excerpts. Mostly I want to have the font smaller, to appear similar my existing site. Is there some way to do this with CSS or whatever? It would be nice to include the number of comments on the post as well, like I have now. This would bring me a small step further to launching with Genesis under the hood.

    Thanks,

    Ray

    February 24, 2013 at 5:35 pm #22603
    Dorian Speed
    Member

    Could you post the code? If it's Bill Erickson's grid loop code, I believe that creates a class called "features" and one for "teasers" or something along those lines. Or post a link to your site in progress.


    Bringing websites Up to Speed
    Firebug will light the way to understanding the secrets of the Internet!

    February 25, 2013 at 1:18 pm #22745
    Wheeler
    Member

    Thanks for the reply Dorian.

    Here is the mess I have so far. I did have the excerpts (teasers) limited at one point, but now (I don't know why) they seem to have expanded to full content. I've been having weird problems with the custom.php reverting to older versions.

    This, I believe, is the only code I have now that modifies output on blog page:

    /** Full Content For Features */
    function be_full_content_for_features( $option ) {
    if( in_array( 'feature', get_post_class() ) )
    $option = 'full';

    return $option;
    }
    add_filter( 'genesis_pre_get_option_content_archive', 'be_full_content_for_features' );

    In full, I'm trying to replicate the look of my existing blog. That would include having category and tag archives return as title, author, date, and number of comments only. I'm a very eager potential convert but, after more than a month struggling with this getting close to throwing in the towel.

    March 6, 2013 at 12:05 am #24489
    Dorian Speed
    Member
    This reply has been marked as private.
  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 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

© 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