Site logo

[Resolved] Different sized image for final post in an archive?

Home Forums Support [Resolved] Different sized image for final post in an archive?

Home Forums Support Different sized image for final post in an archive?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2553339
    Jason

    Hi there!

    I created a custom content template for my archive pages, but something odd is happening with the final post that’s being displayed per category archive. The image is larger than the other ones. I can seem to fix it if I toggle on “Keep default post container” in the element setting, but then it makes articles with shorter titles have smaller images. Is there a way to get the best of both worlds? I would like every image to be the same height so the page looks uniform. Thanks!

    https://fullcleared.com/recommendations/

    #2553490
    Ying
    Staff
    Customer Support

    Hi Jason,

    Not sure I’m seeing the issue, do you mean the last image is larger than the other two?
    https://www.screencast.com/t/a0HM15XvKU

    Let me know!

    #2553502
    Jason

    Hey Ying,

    I sort of figured out a workaround so that’s why you’re not seeing the issue anymore haha. But yes, the last image was taller than the other two before I assigned it minimum and maximum heights with the same value. I can revert it back if you want to take a look, if there’s a better solution than what I am doing.

    Thanks!

    #2553517
    Ying
    Staff
    Customer Support

    No worries, I get it 🙂

    Try removing the max-height and min-height, then add this CSS :

    .one-container.archive .generate-columns-container .post.dynamic-content-template {
        padding-bottom: 0;
    }
    
    .one-container.archive .generate-columns-container {
        row-gap: 30px;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    #2553526
    Jason

    That worked, thank you!

    #2553535
    Ying
    Staff
    Customer Support

    No problem 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.