Community Forums › Forums › Archived Forums › Design Tips and Tricks › Remove images from posts on home page
- This topic has 5 replies, 3 voices, and was last updated 13 years, 1 month ago by
jcp-newbie.
-
AuthorPosts
-
December 27, 2012 at 10:25 pm #7844
dusty909
MemberI am using the eleven40 theme, and on the home page, all posts with the exception of the most recent post take the first image in the post and crop it down to 270 x 100 and show it above the excerpt. This looks pretty bad for images that weren't originally the same aspect ratio as the 270x100. Is there a way to stop genesis from showing this cropped image at all? Short of making sure that I select images for my posts that have the correct aspect ratio (a pain), is there any other way to deal with this issue that looks any good?
My site is http://www.stockodo.com
Thanks!
December 28, 2012 at 1:22 am #7849dusty909
MemberI figured it out... by setting 'grid_image_size' => 0, in home.php.
Anyone got any other suggestions for me though, other than removing the pictures completely?
January 3, 2013 at 12:01 pm #9206gh5649
MemberHelp - I need assistance with this as well, please.
I do not show this original question was resolved.
Using Eleven40 Theme - After the "latest post" I would like to have the post images on the front page appear as a thumbnail (150x150) or at least have the option to display more than an abbreviated and cropped 100 pixel height. (Note: this does not apply to the post on my home page - as it does show the image at full size.
Please advise - Thanks.
Gary.
February 3, 2013 at 12:19 pm #17638jcp-newbie
MemberDusty - Your site looks great.
Setting ‘grid_image_size’ => 0, in home.php removes the pics from the older posts, but I see your site is showing them as a uniform size. How did you get them to show in a uniform size?
Also, how did you get the older posts on the home page to show in a single column? I'm going nuts trying to get my site to look that way.
Thanks!
February 3, 2013 at 3:10 pm #17680dusty909
MemberHi Jcp,
I kind of hacked my way through it but I'll try to remember as best I can.
To change the size of the post images you again use that same grid_image_size that you've currently got set to zero in home.php. You can instead set it to the defined size... In my case I used the 'thumbnail' size as follows, and applied the appropriate classes to make it left aligned:
'grid_image_size' => 'thumbnail',
'grid_image_class' => 'alignleft post-image',To get the posts to show in a single column you edit the CSS in the main css files. Find the selectors for genesis-grid-even and genesis-grid-odd and set them both the same as follows, with a width of 100%:
.genesis-grid-even,
.genesis-grid-odd {
float: left;
margin: 0 0 30px;
padding: 0;
width: 100%;
}Hope this helps!
February 3, 2013 at 7:24 pm #17711jcp-newbie
MemberThank you Dusty! That worked great and was exactly what I was trying to do. I appreciate the help.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.