• 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

Homepage teasers question

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 › Homepage teasers question

This topic is: not resolved

Tagged: exclude categories, home page, simply exclude

  • This topic has 7 replies, 3 voices, and was last updated 10 years, 9 months ago by Anita.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • December 10, 2012 at 9:46 pm #4385
    Ted
    Member

    I am trying to get my site's homepage to show the full blog posts or the teaser of each blog posts (I need to see the final result before deciding). But as it is now, the homepage is showing the first 2 posts as a teaser which stretches the whole content section, but beyond that, the other old posts are split into half within the content section. Meaning to say, for the whole width of the content section, I see 2 teasers, but I only want to see one teaser for the whole content width. How do I do that?

    Also, how do I change the image that is shown on the teasers on the homepage?

    December 10, 2012 at 10:18 pm #4397
    Len
    Participant

    Hi qleapent,

    Could you post a link to the site? It makes it easier for us to help. It sounds as if your theme is using the Genesis Grid Loop on a custom home.php file.

    December 10, 2012 at 11:13 pm #4402
    Ted
    Member

    Hi Len,

    The site is http://www.myradiary.com, I am using the pretty theme for my wife's site.

    Please kindly advice as to how I can do the stuff I mentioned in my initial post.

    Thanks.

    December 10, 2012 at 11:41 pm #4405
    Len
    Participant

    Hi Ted,

    Just looking at a copy of Pretty right now. Yes, this theme uses the Genesis Grid Loop. Take a look at home.php and you'll see this ...

    /** Add support for Genesis Grid Loop */
    function pretty_grid_loop_helper() {
    genesis_grid_loop( array(
    'features' => 2,
    'feature_image_size' => 'feature',
    'feature_image_class' => 'post-image',
    'feature_content_limit' => 300,
    'grid_image_size' => 'grid-thumbnail',
    'grid_image_class' => 'alignleft post-image',
    'grid_content_limit' => 150,
    'more' => __( '[Continue reading]', 'genesis' ),
    'posts_per_page' => 6,
    ) );
    }

    That is the Genesis Grid Loop. There are all sorts of things you can configure here. If you only want to display 1 teaser instead of 2 change ...

    'features' => 2,

    to ...

    'features' => 1,

    With respect to the images, you can set a feature image for each post while you're in the Create Post screen. If you don't set a feature image, it will automatically pull the first image from within the post (if there is one) and display that instead.

    Edit: this editor is mangling the code I'm trying post.

    December 10, 2012 at 11:55 pm #4414
    Ted
    Member

    Thank you so much Len, problem solved for the teasers.

    What do I do if I want to show the full blog posts instead of just teasers?

    December 11, 2012 at 12:03 am #4416
    Len
    Participant

    Change ...

    'feature_content_limit' => 300,

    to ...

    'feature_content_limit' => 0,

    0 will return the full post.

    December 11, 2012 at 12:37 am #4424
    Ted
    Member

    Thank you so much Len.

    December 11, 2012 at 6:04 am #4452
    Anita
    Keymaster

    To share another way of doing this - you could add in the Simply Exclude plugin and you can pick and choose what you want to exclude from various pages - http://wordpress.org/extend/plugins/simply-exclude/.


    Love coffee, chocolate and my Bella!

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