• Resolved harmonyous

    (@harmonyous)


    I changed my theme from OceanWP and my main page’s latest posts blocks are no longer aligned center. I even tried deleting them and adding them again but they still don’t follow the “center” alignment.

    • This topic was modified 1 year, 9 months ago by harmonyous.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • I even tried deleting them and adding them again but they still don’t follow the “center” alignment

    The Latest Post block doesn’t have an option to center align items within it. I can see that the featured image is center aligned, for the post titles and post content you can use the CSS code below:

    .wp-block-latest-posts.is-grid {
        text-align: center;
    }

    You can access the CSS editor by adding this after your URL /wp-admin/customize.php and visiting the Additional CSS panel.

    However, instead of using the CSS code I would suggest using the Query Loop block to display Latest Updates on your main page. You will be able to align the content inside the block to your liking using block settings.

    Thread Starter harmonyous

    (@harmonyous)

    @thelmachido It was working with my previous theme so I thought it would work this time again.
    That query loop got my interest. I guess I’ll redesign my home page using that. Thanks for the suggestion.

    It was working with my previous theme so I thought it would work this time again

    I see what you mean, probably this was set on the theme you were using before because with the TT3 theme, you can only center align the featured image.

    That query loop got my interest. I guess I’ll redesign my home page using that.

    Sounds Great, I will mark this as resolved for now.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Latest posts block not aligning center’ is closed to new replies.