Community Forums › Forums › Archived Forums › Design Tips and Tricks › How to get home page posts aligned one on top of the other
Tagged: blog posts
- This topic has 11 replies, 2 voices, and was last updated 11 years, 10 months ago by
Fabio.
-
AuthorPosts
-
June 15, 2013 at 3:19 am #46031
Fabio
ParticipantHi there!
So basically I want my home page latest posts to look like these ones:
one on top of the other!
Now instead I have one big post and then two small underneath the big one and next to each other
Hope it's clear... sometimes my english is not the best!
🙂
Thanks!
June 15, 2013 at 4:47 am #46039Brad Dalton
ParticipantWhat you need to do is change the settings in your home.php file:
'features' => 10, 'feature_image_size' => 0, 'feature_image_class' => 'alignleft post-image', 'feature_content_limit' => 200,
features - set this to the amount of posts you want to display on your home page. Example 10
feature_content_limit - set this to a content limit which aligns with your featured image. Example 200Feature posts will display full content width.
Grid posts will display side by side in 2 columns.
Do not use the settings for the grid loop or your posts will be displayed in a grid.
'grid_image_size' => 'grid-thumbnail', 'grid_image_class' => 'alignnone', 'grid_content_limit' => 0,
June 15, 2013 at 5:04 am #46040Fabio
ParticipantHey Brad,
thanks for your reply!
So basically before I destroy my theme function, could you please tell me where to paste those lines of code?
What I understood from your reply is that I need to find where this is:
'grid_image_size'
     Â=>
'grid-thumbnail'
,
           Â
'grid_image_class'
    Â=>
'alignnone'
,
           Â
'grid_content_limit'
=> 0,
delete it and substitute it with this:
'features'
=> 10,
           Â
'feature_image_size'
=> 0,
           Â
'feature_image_class'
=>
'alignleft post-image'
,
           Â
'feature_content_limit'
=> 200,
is that correct?
Thanks!June 15, 2013 at 5:36 am #46046Brad Dalton
ParticipantSimply change the values in your home.php file to match the first code snippet http://www.studiopress.community/topic/how-to-get-home-page-posts-aligned-one-on-top-of-the-other/#post-46039
No need to do anything with the other code.
No pasting needed.
June 15, 2013 at 6:07 am #46049Fabio
ParticipantHey Brad,
thanks.
I've tried but I lose the paragraphs....
is there any way I can keep the paragraph? Otherwise it looks like a sea of words..
Thanks!
June 15, 2013 at 7:14 am #46064Brad Dalton
ParticipantChange the Genesis > Theme Settings > Content Archives to the thumbnail size and use the content limit in your home.php file to set the best limit so the content only aligns with your thumbnail.
It will strip out HTML formatting so you will lose your paragraphs which is why i suggest you keep it to a smallest content limit.
June 15, 2013 at 7:23 am #46065Fabio
ParticipantSo basically there's no way I can keep the formatting?
June 15, 2013 at 7:34 am #46068Brad Dalton
ParticipantNot that i know of. You could use large featured images and a small amount of text.
June 15, 2013 at 7:35 am #46069Fabio
ParticipantSuch a shame...
Thanks anyways for your help!
June 15, 2013 at 8:20 am #46079Fabio
ParticipantJune 15, 2013 at 10:01 am #46102Brad Dalton
ParticipantNever used it but it looks like you have the option of keeping the HTML markup in the excerpt.
June 16, 2013 at 2:17 am #46224Fabio
ParticipantHey thanks Brad!
It doesn't work with the latest version of wordpress....
I can't believe there's no solution to this 🙂 and I thought there was a solution to everything!
Well, if anybody that reads this thread knows how to do it, please tell us!
Thank you
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.