We're merging with GenerateBlocks! Learn more here.

[Resolved] center odd-numbered post excerpt in column list

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support center odd-numbered post excerpt in column list

Tagged: ,

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #12452
    Daniel
    Participant

    I have a list that is set for 2 columns, which will whow varying numbers of posts. When the number of posts is even, it looks good. But when it’s odd, the last post is right-justified and looks strange. Is there a way to center the last post (or make it full width) when an odd number of posts is shown?

    Thanks much,
    Dan

    #12474
    Tom
    Keymaster

    Hi there,

    Any chance you can link us to your site so I can take a look?

    Thanks!

    #12475
    Daniel
    Participant

    I’d be happy to (it’s http://www.solsticesingers.org – come hear us!) but when we went from two upcoming concerts to one, I set that list to one column so it would center. That’s the step I wish were automatic.

    Dan

    #12507
    Tom
    Keymaster

    Hi there,

    Is there a specific page I should be looking at? I’m not seeing the issue at the moment.

    Let me know 🙂

    #12512
    Daniel
    Participant

    Yes, sorry. Here’s a temporary page where you can see what I mean. At the bottom I have a list of three posts in two columns. I think it would look better if the third one (or more generally, the last one if the post count is odd) could be centered.

    https://www.solsticesingers.org/home-page-copy/

    Thanks,
    Dan

    #12521
    Tom
    Keymaster

    Hi there,

    Give this CSS a shot:

    .wp-show-posts-columns:not(.wp-show-posts-masonry) {
        justify-content: center;
    }
    #12525
    Daniel
    Participant

    That did it. Thanks!

    #12543
    Tom
    Keymaster

    You’re welcome 🙂

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