Archived topic
masonry layout and blog post length/size
6 replies · Started by cath on November 21, 2015
Hi, just purchased the blog add-on. thanks for your nice theme! My question is - with masonry and the grid style, the images seem to all show up different sizes vs. the same box size which I am more used to. Is this what is supposed to happen? I also thought with masonry, that the first post would be full length and then the others would be excerpted automatically? Do you have to set the Read More for the Masonry style also?
Thanks!
p.s. Also, I am getting duplicate images on the home page except when I set it to excerpt. But, to use masonry, if I have to manually excerpt them - I have over 1000 posts - that will be difficult. Thanks.
Hi there,
So you're wanting the latest post on masonry to show the full post content, and the rest to have excerpts? If so, I should have a function for you.
For the image sizes, you can set them in "Customize > Blog > Post Images" - that will allow you to set them to one size instead of having them vary.
The duplicate images is because you have a featured image set and the same image within the content. When the full post is set to show, the images will show also. You can use some CSS to hide the image in the full post like this:
.blog .entry-content img,
.archive .entry-content img {
display: none;
}
Let me know :)
I am a little unclear tho what here will make the first post read full length. Which thing is changed that will let this occur ? Thank you!
You can use this function to show the latest post as full: https://gist.github.com/generatepress/5009727fe1b9fdba37b4
Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/
thanks so much for your great support and help.
You're welcome :)
