Homepage teasers question

Community Forums Forums Design Tips and Tricks Homepage teasers question

This topic is: not resolved

This topic contains 7 replies, has 3 voices, and was last updated by  anitac 1 year, 4 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #4385

    Ted
    Participant
    Post count: 22

    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?

    #4397

    Len
    Participant
    Post count: 10

    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.


    #4402

    Ted
    Participant
    Post count: 22

    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.

    #4405

    Len
    Participant
    Post count: 10

    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.


    • This reply was modified 1 year, 4 months ago by  Len.
    • This reply was modified 1 year, 4 months ago by  Len.
    • This reply was modified 1 year, 4 months ago by  Len. Reason: mangling my code
    • This reply was modified 1 year, 4 months ago by  Len.
    • This reply was modified 1 year, 4 months ago by  Len.
    • This reply was modified 1 year, 4 months ago by  Len.
    • This reply was modified 1 year, 4 months ago by  Len.
    • This reply was modified 1 year, 4 months ago by  Len.
    • This reply was modified 1 year, 4 months ago by  Len. Reason: mangling my code
    • This reply was modified 1 year, 4 months ago by  Len.
    • This reply was modified 1 year, 4 months ago by  Len.
    • This reply was modified 1 year, 4 months ago by  Len.
    #4414

    Ted
    Participant
    Post count: 22

    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?

    #4416

    Len
    Participant
    Post count: 10

    Change …

    'feature_content_limit' => 300,

    to …

    'feature_content_limit' => 0,

    0 will return the full post.


    • This reply was modified 1 year, 4 months ago by  Len.
    • This reply was modified 1 year, 4 months ago by  Len.
    #4424

    Ted
    Participant
    Post count: 22

    Thank you so much Len.

    #4452

    anitac
    Participant
    Post count: 6399

    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/.


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.